aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-01 15:02:52 +0100
committerMartin Kiewitz2016-02-01 15:02:52 +0100
commit14f338e2dd5cce9e6968be75eca146fd40c856e4 (patch)
tree7dcb3ab04efb8e3a7d878f0c72a2ea99818bfd28
parentcf5133742cf0cb9d6d56ffa478a62bb8324019ae (diff)
downloadscummvm-rg350-14f338e2dd5cce9e6968be75eca146fd40c856e4.tar.gz
scummvm-rg350-14f338e2dd5cce9e6968be75eca146fd40c856e4.tar.bz2
scummvm-rg350-14f338e2dd5cce9e6968be75eca146fd40c856e4.zip
AGI: Revert revert the keyboard handling changes
It seems the issues on AmigaOS aren't actually caused by the new code. Reverting the revert.
-rw-r--r--engines/agi/keyboard.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp
index 9fb837badb..07aec985c8 100644
--- a/engines/agi/keyboard.cpp
+++ b/engines/agi/keyboard.cpp
@@ -136,7 +136,6 @@ void AgiEngine::processEvents() {
}
key = event.kbd.ascii;
-#if 0
if (event.kbd.keycode >= Common::KEYCODE_KP0 && event.kbd.keycode <= Common::KEYCODE_KP9) {
if (!(event.kbd.flags & Common::KBD_NUM)) {
// HACK: Num-Lock not enabled
@@ -145,13 +144,8 @@ void AgiEngine::processEvents() {
key = 0;
}
}
-#endif
- // FIXME: Checking .ascii this way seems to cause issues on at least AmigaOS
- // See bug #7009. For detailed information see engines/sci/event.cpp, EventManager::getScummVMEvent().
- // For now we are using the same code as in SCI to make it work.
- // Needs to get fixed in SDL backend / SDL itself.
- //if ((key) && (key <= 0xFF)) {
- if ((key) && (!(event.kbd.keycode & 0xFF00))) {
+
+ if ((key) && (key <= 0xFF)) {
// No special key, directly accept it
// Is ISO-8859-1, we need lower 128 characters only, which is plain ASCII, so no mapping required
if (Common::isAlpha(key)) {