[Scummvm-git-logs] scummvm master -> 5caac7e0138af0a0a9b08565c4eecdacd3d1f8b1
AndywinXp
noreply at scummvm.org
Tue Jan 23 20:03:17 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5caac7e013 SCUMM: Attempt at fixing #14781
Commit: 5caac7e0138af0a0a9b08565c4eecdacd3d1f8b1
https://github.com/scummvm/scummvm/commit/5caac7e0138af0a0a9b08565c4eecdacd3d1f8b1
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-01-23T21:03:11+01:00
Commit Message:
SCUMM: Attempt at fixing #14781
Changed paths:
engines/scumm/input.cpp
diff --git a/engines/scumm/input.cpp b/engines/scumm/input.cpp
index b8b1929f2ba..eb71ff64765 100644
--- a/engines/scumm/input.cpp
+++ b/engines/scumm/input.cpp
@@ -192,14 +192,14 @@ void ScummEngine::parseEvent(Common::Event event) {
// NumLock is enabled. This fixes fighting in Indy 3 (Trac #11227)
if (event.kbd.keycode >= Common::KEYCODE_KP0 && event.kbd.keycode <= Common::KEYCODE_KP9) {
- _keyPressed = event.kbd;
- _keyPressed.ascii = (_keyPressed.keycode - Common::KEYCODE_KP0) + '0';
+ event.kbd.ascii = (event.kbd.keycode - Common::KEYCODE_KP0) + '0';
+ event.kbd.flags = Common::KBD_NUM;
}
- if (_keyPressed.ascii >= 512) {
+ if (event.kbd.ascii >= 512) {
debugC(DEBUG_GENERAL, "keyPressed > 512 (%d)", event.kbd.ascii);
} else {
- _keyDownMap[_keyPressed.ascii] = false;
+ _keyDownMap[event.kbd.ascii] = false;
// Due to some weird bug with capslock key pressed
// generated keydown event is for lower letter but
More information about the Scummvm-git-logs
mailing list