- Timestamp:
- 06/09/11 19:30:34 (14 years ago)
- File:
-
- 1 edited
-
ps/trunk/source/gui/IGUIButtonBehavior.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/gui/IGUIButtonBehavior.cpp
r9593 r9604 63 63 { 64 64 m_Pressed = false; 65 // BUTTON WAS CLICKED66 65 if (Message.type == GUIM_MOUSE_RELEASE_LEFT) 67 66 { 67 // Button was clicked 68 68 SendEvent(GUIM_PRESSED, "press"); 69 69 } 70 // BUTTON WAS DOUBLE CLICKED71 70 else 72 71 { 73 if (SendEvent(GUIM_DOUBLE_PRESSED, "doublepress") == IN_PASS) 74 SendEvent(GUIM_PRESSED, "press"); 72 // Button was clicked a second time. We can't tell if the button 73 // expects to receive doublepress events or just a second press 74 // event, so send both of them (and assume the extra unwanted press 75 // is harmless on buttons that expect doublepress) 76 SendEvent(GUIM_PRESSED, "press"); 77 SendEvent(GUIM_DOUBLE_PRESSED, "doublepress"); 75 78 } 76 79 }
Note:
See TracChangeset
for help on using the changeset viewer.
