diff --git a/changes.txt b/changes.txt index 04b8a538..d319ba0f 100644 --- a/changes.txt +++ b/changes.txt @@ -86,6 +86,8 @@ Changes in 1.6 - Fixed problem with highlighting menus when mouse was outside sub-menu area. + - Add mouse events EMIE_MOUSE_DOUBLE_CLICK and EMIE_MOUSE_TRIPLE_CLICK (thx to Ulf for patch proposal) + - Set "ButtonStates" for mouse events also on Linux (was only for Windows formerly) - Add Shift+Control states to mouse event diff --git a/include/IEventReceiver.h b/include/IEventReceiver.h index 2d4e094f..6564b206 100644 --- a/include/IEventReceiver.h +++ b/include/IEventReceiver.h @@ -99,6 +99,14 @@ namespace irr //! in what direction and how fast. EMIE_MOUSE_WHEEL, + //! Mouse double click. + //! This event is generated after the second EMIE_LMOUSE_PRESSED_DOWN event. + EMIE_MOUSE_DOUBLE_CLICK, + + //! Mouse triple click. + //! This event is generated after the third EMIE_LMOUSE_PRESSED_DOWN event. + EMIE_MOUSE_TRIPLE_CLICK, + //! No real event. Just for convenience to get number of events EMIE_COUNT };