diff options
author | Gregory Montoir | 2003-11-09 20:50:03 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-11-09 20:50:03 +0000 |
commit | c9feb712bc0fa6fe51082eaf7b3c22ef1aa0b673 (patch) | |
tree | a7675b4662be2e1774a922e1f989759eb8839f42 /queen/input.h | |
parent | 79f84425dd3abc7239531b1c9ef1ccc155703a8b (diff) | |
download | scummvm-rg350-c9feb712bc0fa6fe51082eaf7b3c22ef1aa0b673.tar.gz scummvm-rg350-c9feb712bc0fa6fe51082eaf7b3c22ef1aa0b673.tar.bz2 scummvm-rg350-c9feb712bc0fa6fe51082eaf7b3c22ef1aa0b673.zip |
enable (some of) the original debug passwords
svn-id: r11227
Diffstat (limited to 'queen/input.h')
-rw-r--r-- | queen/input.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/queen/input.h b/queen/input.h index d82bbd05b4..d9a047a84f 100644 --- a/queen/input.h +++ b/queen/input.h @@ -34,6 +34,8 @@ class Input { public: + typedef void (*keyPressedCallback)(void *refCon, int key); + //! Adjust here to change delays! enum { DELAY_SHORT = 10, @@ -54,7 +56,7 @@ class Input { void delay(uint amount); //! convert input to verb - void checkKeys(); + int checkKeys(); //! use instead of KEYVERB=0 void clearKeyVerb() { _keyVerb = Verb(VERB_NONE); } @@ -70,6 +72,7 @@ class Input { bool talkQuit() const { return _talkQuit; } void talkQuitReset() { _talkQuit = false; } + bool fastMode() const { return _fastMode; } void fastMode(bool fm) { _fastMode = fm; } Verb keyVerb() const { return _keyVerb; } @@ -80,6 +83,9 @@ class Input { int mouseButton() const { return _mouseButton; } void clearMouseButton() { _mouseButton = 0; } + bool waitForNumber(int &i, keyPressedCallback callback, void *refCon); + bool waitForCharacter(char &c); + private: enum KeyCode { @@ -92,7 +98,9 @@ class Input { KEY_DIGIT_3 = '3', KEY_DIGIT_4 = '4', - KEY_ESCAPE = 27, + KEY_ESCAPE = 27, + KEY_RETURN = 13, + KEY_BACKSPACE = 8, KEY_F1 = 282 }; |