[Scummvm-cvs-logs] scummvm master -> 73cf4a80e8b65fda3fe959e10181308622f9da6d
m-kiewitz
m_kiewitz at users.sourceforge.net
Tue Feb 9 19:34:42 CET 2016
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:
73cf4a80e8 AGI: Hold-Key: only send stationary for directions
Commit: 73cf4a80e8b65fda3fe959e10181308622f9da6d
https://github.com/scummvm/scummvm/commit/73cf4a80e8b65fda3fe959e10181308622f9da6d
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2016-02-09T19:34:50+01:00
Commit Message:
AGI: Hold-Key: only send stationary for directions
Changed paths:
engines/agi/keyboard.cpp
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp
index 9b745b7..ba1b2f5 100644
--- a/engines/agi/keyboard.cpp
+++ b/engines/agi/keyboard.cpp
@@ -256,7 +256,28 @@ void AgiEngine::processScummVMEvents() {
// Original AGI actually created direction events in here
// We don't do that, that's why we create a stationary event instead, which will
// result in a direction change to 0 in handleController().
- keyEnqueue(AGI_KEY_STATIONARY);
+ switch (event.kbd.keycode) {
+ case Common::KEYCODE_LEFT:
+ case Common::KEYCODE_RIGHT:
+ case Common::KEYCODE_UP:
+ case Common::KEYCODE_DOWN:
+ case Common::KEYCODE_HOME:
+ case Common::KEYCODE_END:
+ case Common::KEYCODE_PAGEUP:
+ case Common::KEYCODE_PAGEDOWN:
+ case Common::KEYCODE_KP4:
+ case Common::KEYCODE_KP6:
+ case Common::KEYCODE_KP8:
+ case Common::KEYCODE_KP2:
+ case Common::KEYCODE_KP9:
+ case Common::KEYCODE_KP3:
+ case Common::KEYCODE_KP7:
+ case Common::KEYCODE_KP1:
+ keyEnqueue(AGI_KEY_STATIONARY);
+ break;
+ default:
+ break;
+ }
}
break;
More information about the Scummvm-git-logs
mailing list