From c99515be864ca71c89a6f171b62583ae30425934 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 23 Jun 2007 15:40:28 +0000 Subject: Changed BASS to use more KEYCODEs svn-id: r27670 --- engines/sky/sky.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'engines/sky') 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(); -- cgit v1.2.3