mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
HADESCH: Support skipping on escape.
This works better on hanheld devices that usually have no convenient shortcut for space.
This commit is contained in:
parent
f068d5a65d
commit
cbbdc5fdde
@ -604,13 +604,13 @@ Common::Error HadeschEngine::run() {
|
||||
// TODO: make equivalents for mobile devices. Keyboard is
|
||||
// used for 4 things:
|
||||
//
|
||||
// * Skipping cutscenes (press space)
|
||||
// * Skipping cutscenes (press space or escape. In original: only space).
|
||||
// * Entering name.
|
||||
// Original requires a non-empty name. We allow an
|
||||
// empty name.
|
||||
// * Optional save name
|
||||
// * Cheats
|
||||
if (event.kbd.keycode == Common::KEYCODE_SPACE)
|
||||
if (event.kbd.keycode == Common::KEYCODE_SPACE || event.kbd.keycode == Common::KEYCODE_ESCAPE)
|
||||
stopVideo = true;
|
||||
if ((event.kbd.ascii >= 'a' && event.kbd.ascii <= 'z')
|
||||
|| (event.kbd.ascii >= '0' && event.kbd.ascii <= '9')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user