diff options
author | Max Horn | 2002-07-27 14:16:14 +0000 |
---|---|---|
committer | Max Horn | 2002-07-27 14:16:14 +0000 |
commit | 39670a73c04e3e35b4c68d98ec4956ba7ed9710c (patch) | |
tree | d6dabe7da514070cf40e80eae6474658b3377f0e /newgui.h | |
parent | 403afb0514a796c77d004b5be342946ffc023953 (diff) | |
download | scummvm-rg350-39670a73c04e3e35b4c68d98ec4956ba7ed9710c.tar.gz scummvm-rg350-39670a73c04e3e35b4c68d98ec4956ba7ed9710c.tar.bz2 scummvm-rg350-39670a73c04e3e35b4c68d98ec4956ba7ed9710c.zip |
heaps of changes to NewGUI: mouseDown/Up events now count the clicks (so you can detect double/triple clicks); ListWidget sends a message if an item was double clicked or changed; you can abort editing in the ListWidget by pressing ESC; SaveLoadDialog will save when you double click and item, and when you finish editing an item by pressing return, will save
svn-id: r4656
Diffstat (limited to 'newgui.h')
-rw-r--r-- | newgui.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -94,8 +94,8 @@ protected: // for continuous events (keyDown) int _currentKeyDown, _currentKeyDownFlags; - int _loopCount; - int _eventFiredCount; + int _keyRepeatLoopCount; + int _keyRepeatEvenCount; // sound state bool _old_soundsPaused; @@ -105,10 +105,12 @@ protected: int _old_cursorHotspotX, _old_cursorHotspotY, _old_cursorWidth, _old_cursorHeight; byte _old_grabbedCursor[2048]; - // mouse pos + // position and time of last mouse click (used to detect double clicks) struct { - int16 x,y; - } _old_mouse; + int16 x, y; // Position of mouse when the click occured + uint32 time; // Time + int count; // How often was it already pressed? + } _lastClick; // List of events to be handled EventList _eventList; |