aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-01 15:04:03 +0100
committerMartin Kiewitz2016-02-01 15:04:03 +0100
commit0b17a67a30a48ffed7b4fe0c34854baad45492fa (patch)
treec39cc2cb6ba542516be23a5a8032288803e85534
parent14f338e2dd5cce9e6968be75eca146fd40c856e4 (diff)
downloadscummvm-rg350-0b17a67a30a48ffed7b4fe0c34854baad45492fa.tar.gz
scummvm-rg350-0b17a67a30a48ffed7b4fe0c34854baad45492fa.tar.bz2
scummvm-rg350-0b17a67a30a48ffed7b4fe0c34854baad45492fa.zip
SCI: 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/sci/event.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp
index e8744b8f60..90ddaaf967 100644
--- a/engines/sci/event.cpp
+++ b/engines/sci/event.cpp
@@ -214,8 +214,6 @@ SciEvent EventManager::getScummVMEvent() {
//((ev.kbd.flags & Common::KBD_CAPS) ? SCI_KEYMOD_CAPSLOCK : 0) |
//((ev.kbd.flags & Common::KBD_SCRL) ? SCI_KEYMOD_SCRLOCK : 0) |
- // FIXME: this hack should also not be here, see below
-#if 0
if (input.data >= Common::KEYCODE_KP0 && input.data <= Common::KEYCODE_KP9) {
if (!(ev.kbd.flags & Common::KBD_NUM)) {
// HACK: Num-Lock not enabled
@@ -224,15 +222,8 @@ SciEvent EventManager::getScummVMEvent() {
input.character = 0;
}
}
-#endif
-
- // FIXME: using .ascii (.character) in here somewhat works on Windows+Linux, but it seems that
- // at least SDL on AmigaOS returns valid .ascii characters when Fx keys are pressed etc.
- // Check bug #7009. For now I reverted my changes. This needs to get fixed properly in backend / SDL itself.
- // On Windows .ascii field gets values, when Fx keys are pressed as well, but it's above 0xFF.
- // On AmigaOS it seems to return a value <= 0xFF.
- //if ((input.character) && (input.character <= 0xFF)) {
- if (!(input.data & 0xFF00)) {
+
+ if ((input.character) && (input.character <= 0xFF)) {
// Directly accept most common keys without conversion
if ((input.character >= 0x80) && (input.character <= 0xFF)) {
// If there is no extended font, we will just clear the