aboutsummaryrefslogtreecommitdiff
path: root/scumm/dialogs.h
diff options
context:
space:
mode:
authorMax Horn2002-11-22 14:02:54 +0000
committerMax Horn2002-11-22 14:02:54 +0000
commit17cf386e8820fe312eb216c9be93d6d309f512e1 (patch)
tree2288df14ecb66e7637da7034ed9578323ef89bc2 /scumm/dialogs.h
parent6b2f898bdd67bdd37d0d65674dbc831a0b33aa0d (diff)
downloadscummvm-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 'scumm/dialogs.h')
-rw-r--r--scumm/dialogs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/dialogs.h b/scumm/dialogs.h
index 80b5fdb480..abe21082d2 100644
--- a/scumm/dialogs.h
+++ b/scumm/dialogs.h
@@ -118,12 +118,12 @@ public:
virtual void handleMouseDown(int x, int y, int button, int clickCount)
{ close(); }
- virtual void handleKeyDown(char key, int modifiers)
+ virtual void handleKeyDown(uint16 ascii, int keycode, int modifiers)
{
- if (key == ' ') // Close pause dialog if space key is pressed
+ if (ascii == ' ') // Close pause dialog if space key is pressed
close();
else
- ScummDialog::handleKeyDown(key, modifiers);
+ ScummDialog::handleKeyDown(ascii, keycode, modifiers);
}
protected:
void setInfoText (const String& message);
@@ -141,7 +141,7 @@ public:
KeysDialog(NewGui *gui, Scumm *scumm);
virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
- virtual void handleKeyDown(char key, int modifiers);
+ virtual void handleKeyDown(uint16 ascii, int keycode, int modifiers);
protected: