diff options
author | Max Horn | 2002-11-22 14:02:54 +0000 |
---|---|---|
committer | Max Horn | 2002-11-22 14:02:54 +0000 |
commit | 17cf386e8820fe312eb216c9be93d6d309f512e1 (patch) | |
tree | 2288df14ecb66e7637da7034ed9578323ef89bc2 /gui/widget.h | |
parent | 6b2f898bdd67bdd37d0d65674dbc831a0b33aa0d (diff) | |
download | scummvm-rg350-17cf386e8820fe312eb216c9be93d6d309f512e1.tar.gz scummvm-rg350-17cf386e8820fe312eb216c9be93d6d309f512e1.tar.bz2 scummvm-rg350-17cf386e8820fe312eb216c9be93d6d309f512e1.zip |
changed the key input system in NewGUI: pass both the keycode and the ascii value to handleKeyUp/Down. Also, use this to fix the key repeat code (see bug #626225)
svn-id: r5691
Diffstat (limited to 'gui/widget.h')
-rw-r--r-- | gui/widget.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/widget.h b/gui/widget.h index aa74167f41..8330743703 100644 --- a/gui/widget.h +++ b/gui/widget.h @@ -110,8 +110,8 @@ public: virtual void handleMouseLeft(int button) {} virtual void handleMouseMoved(int x, int y, int button) {} virtual void handleMouseWheel(int x, int y, int direction) {} - virtual bool handleKeyDown(char key, int modifiers) { return false; } // Return true if the event was handled - virtual bool handleKeyUp(char key, int modifiers) { return false; } // Return true if the event was handled + virtual bool handleKeyDown(uint16 ascii, int keycode, int modifiers) { return false; } // Return true if the event was handled + virtual bool handleKeyUp(uint16 ascii, int keycode, int modifiers) { return false; } // Return true if the event was handled virtual void handleTickle() {} void draw(); void receivedFocus() { _hasFocus = true; receivedFocusWidget(); } |