diff options
author | Johannes Schickel | 2008-03-17 18:19:01 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-03-17 18:19:01 +0000 |
commit | 6ebfeb5a05d3c85d6d60b3f0abb461d7085737ce (patch) | |
tree | 830b2294c657f0acf2f3bb54d8cc1030e84d7927 /engines/kyra/kyra_v2.cpp | |
parent | c7ede8337e783c6e289bed4ce6a11ebba1c987b5 (diff) | |
download | scummvm-rg350-6ebfeb5a05d3c85d6d60b3f0abb461d7085737ce.tar.gz scummvm-rg350-6ebfeb5a05d3c85d6d60b3f0abb461d7085737ce.tar.bz2 scummvm-rg350-6ebfeb5a05d3c85d6d60b3f0abb461d7085737ce.zip |
Also allow '.' and Escape as keys for skipping sequences in HoF.
svn-id: r31156
Diffstat (limited to 'engines/kyra/kyra_v2.cpp')
-rw-r--r-- | engines/kyra/kyra_v2.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp index 35ee9ebc7a..6f26026211 100644 --- a/engines/kyra/kyra_v2.cpp +++ b/engines/kyra/kyra_v2.cpp @@ -731,6 +731,15 @@ void KyraEngine_v2::updateInput() { _quitFlag = true; break; + case Common::EVENT_KEYDOWN: + if (event.kbd.keycode == '.' || event.kbd.keycode == Common::KEYCODE_ESCAPE) + _eventList.push_back(Event(event, true)); + else if (event.kbd.keycode == 'q' && event.kbd.flags == Common::KBD_CTRL) + _quitFlag = true; + else + _eventList.push_back(event); + break; + case Common::EVENT_LBUTTONUP: _eventList.push_back(Event(event, true)); break; @@ -768,6 +777,7 @@ int KyraEngine_v2::checkInput(Button *buttonList, bool mainLoop) { if (event.kbd.keycode == 'd') _debugger->attach(); } + breakLoop = true; break; |