diff options
author | Thierry Crozat | 2019-06-23 21:50:49 +0100 |
---|---|---|
committer | Thierry Crozat | 2019-06-30 12:36:43 +0100 |
commit | 5232cf376bdd1fa5381b9a07e024d075124d1966 (patch) | |
tree | 3d1481773bddf4848699a21255e708ba320dff63 | |
parent | 3ba9245138b6b6c9fe4450ece8d91a893b8a3e1f (diff) | |
download | scummvm-rg350-5232cf376bdd1fa5381b9a07e024d075124d1966.tar.gz scummvm-rg350-5232cf376bdd1fa5381b9a07e024d075124d1966.tar.bz2 scummvm-rg350-5232cf376bdd1fa5381b9a07e024d075124d1966.zip |
IOS7: Remove key mapping for function and return keys
Those keys are not present on the virtual keyboard accessory view.
This should fix bug #10314: LSL7: Unable to open Xqwsts's locker
on iOS.
-rw-r--r-- | backends/platform/ios7/ios7_osys_events.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/backends/platform/ios7/ios7_osys_events.cpp b/backends/platform/ios7/ios7_osys_events.cpp index 9924264cd8..69a350327f 100644 --- a/backends/platform/ios7/ios7_osys_events.cpp +++ b/backends/platform/ios7/ios7_osys_events.cpp @@ -389,54 +389,6 @@ void OSystem_iOS7::handleEvent_keyPressed(Common::Event &event, int keyPressed) int ascii = keyPressed; //printf("key: %i\n", keyPressed); - // We remap some of the iPhone keyboard keys. - // The first ten here are the row of symbols below the numeric keys. - switch (keyPressed) { - case 45: - keyPressed = Common::KEYCODE_F1; - ascii = Common::ASCII_F1; - break; - case 47: - keyPressed = Common::KEYCODE_F2; - ascii = Common::ASCII_F2; - break; - case 58: - keyPressed = Common::KEYCODE_F3; - ascii = Common::ASCII_F3; - break; - case 59: - keyPressed = Common::KEYCODE_F4; - ascii = Common::ASCII_F4; - break; - case 40: - keyPressed = Common::KEYCODE_F5; - ascii = Common::ASCII_F5; - break; - case 41: - keyPressed = Common::KEYCODE_F6; - ascii = Common::ASCII_F6; - break; - case 36: - keyPressed = Common::KEYCODE_F7; - ascii = Common::ASCII_F7; - break; - case 38: - keyPressed = Common::KEYCODE_F8; - ascii = Common::ASCII_F8; - break; - case 64: - keyPressed = Common::KEYCODE_F9; - ascii = Common::ASCII_F9; - break; - case 34: - keyPressed = Common::KEYCODE_F10; - ascii = Common::ASCII_F10; - break; - case 10: - keyPressed = Common::KEYCODE_RETURN; - ascii = Common::ASCII_RETURN; - break; - } event.type = Common::EVENT_KEYDOWN; _queuedInputEvent.type = Common::EVENT_KEYUP; |