mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 08:23:15 +00:00
crude fix for bug #786995 stop arrow keys being sent to scripts as they are currently stolen by the keyboard cursor control stuff. I will soon either gut the keyboard cursor stuff or make it non default as it breaks several things
svn-id: r9809
This commit is contained in:
parent
a51be5d39e
commit
446ca58580
@ -1442,7 +1442,11 @@ void Scumm::parseEvents() {
|
||||
// this remaps F1 to F5 for comi
|
||||
} else if (event.kbd.ascii == 315 && _gameId == GID_CMI)
|
||||
_keyPressed = 319;
|
||||
else
|
||||
// don't let game have arrow keys as we currently steal them
|
||||
// for keyboard cursor control
|
||||
// this fixes bug with up arrow (273) corresponding to
|
||||
// "instant win" cheat in MI2 mentioned above
|
||||
else if (event.kbd.ascii < 273 || event.kbd.ascii > 276)
|
||||
_keyPressed = event.kbd.ascii; // Normal key press, pass on to the game.
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user