aboutsummaryrefslogtreecommitdiff
path: root/newgui.h
diff options
context:
space:
mode:
authorMax Horn2002-07-27 14:16:14 +0000
committerMax Horn2002-07-27 14:16:14 +0000
commit39670a73c04e3e35b4c68d98ec4956ba7ed9710c (patch)
treed6dabe7da514070cf40e80eae6474658b3377f0e /newgui.h
parent403afb0514a796c77d004b5be342946ffc023953 (diff)
downloadscummvm-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.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/newgui.h b/newgui.h
index 10d2861c84..ef52cf77c2 100644
--- a/newgui.h
+++ b/newgui.h
@@ -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;