diff options
author | Max Horn | 2002-07-13 18:32:09 +0000 |
---|---|---|
committer | Max Horn | 2002-07-13 18:32:09 +0000 |
commit | 1238d7422705e88097d21a3d0e34683262be4331 (patch) | |
tree | 1c91aec348222a0955b638e9308ab7a85f5965ec /gui/dialog.h | |
parent | 101613f6fd6226bd0d205efe395de4e2b1009731 (diff) | |
download | scummvm-rg350-1238d7422705e88097d21a3d0e34683262be4331.tar.gz scummvm-rg350-1238d7422705e88097d21a3d0e34683262be4331.tar.bz2 scummvm-rg350-1238d7422705e88097d21a3d0e34683262be4331.zip |
took painelf's change, modified it a lot, and now here's the result :-)
svn-id: r4540
Diffstat (limited to 'gui/dialog.h')
-rw-r--r-- | gui/dialog.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gui/dialog.h b/gui/dialog.h index 29a4b76795..460fa6e0bf 100644 --- a/gui/dialog.h +++ b/gui/dialog.h @@ -53,8 +53,10 @@ public: virtual void draw(); //virtual void handleIdle(); // Called periodically - virtual void handleClick(int x, int y, int button); - virtual void handleKey(char key, int modifiers); // modifiers = alt/shift/ctrl etc. + virtual void handleMouseDown(int x, int y, int button); + virtual void handleMouseUp(int x, int y, int button); + virtual void handleKeyDown(char key, int modifiers); // modifiers = alt/shift/ctrl etc. + virtual void handleKeyUp(char key, int modifiers); // modifiers = alt/shift/ctrl etc. virtual void handleMouseMoved(int x, int y, int button); virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); @@ -102,14 +104,14 @@ class PauseDialog : public Dialog { public: PauseDialog(NewGui *gui); - virtual void handleClick(int x, int y, int button) + virtual void handleMouseDown(int x, int y, int button) { close(); } - virtual void handleKey(char key, int modifiers) + virtual void handleKeyDown(char key, int modifiers) { if (key == 32) close(); else - Dialog::handleKey(key, modifiers); + Dialog::handleKeyDown(key, modifiers); } }; |