diff options
author | Max Horn | 2007-06-23 15:40:28 +0000 |
---|---|---|
committer | Max Horn | 2007-06-23 15:40:28 +0000 |
commit | c99515be864ca71c89a6f171b62583ae30425934 (patch) | |
tree | 46ec1bb1bb0e95a7c82b056ec0f9f66a4caee2ce /engines/sky | |
parent | 04afb9bc7dbc022f76c11fa2f36966c20e415421 (diff) | |
download | scummvm-rg350-c99515be864ca71c89a6f171b62583ae30425934.tar.gz scummvm-rg350-c99515be864ca71c89a6f171b62583ae30425934.tar.bz2 scummvm-rg350-c99515be864ca71c89a6f171b62583ae30425934.zip |
Changed BASS to use more KEYCODEs
svn-id: r27670
Diffstat (limited to 'engines/sky')
-rw-r--r-- | engines/sky/sky.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/engines/sky/sky.cpp b/engines/sky/sky.cpp index 181d67cbf4..79c1f0cb7d 100644 --- a/engines/sky/sky.cpp +++ b/engines/sky/sky.cpp @@ -228,32 +228,33 @@ void SkyEngine::handleKey(void) { _fastMode ^= 2; else if (_keyPressed.keycode == 'd') _debugger->attach(); - } else { - switch (_keyPressed.ascii) { - case '`': - case '~': - case '#': + } else if (_keyPressed.keycode) { + switch (_keyPressed.keycode) { + case Common::KEYCODE_BACKQUOTE: + case Common::KEYCODE_HASH: _debugger->attach(); break; - case Common::ASCII_F5: + case Common::KEYCODE_F5: _skyControl->doControlPanel(); break; - case Common::ASCII_ESCAPE: + case Common::KEYCODE_ESCAPE: if (!_systemVars.pastIntro) _skyControl->restartGame(); break; - case '.': + case Common::KEYCODE_PERIOD: _skyMouse->logicClick(); break; - case 'p': + case Common::KEYCODE_p: _skyScreen->halvePalette(); _skySound->fnPauseFx(); _systemVars.paused = true; break; + default: + break; } } _keyPressed.reset(); |