From 5232cf376bdd1fa5381b9a07e024d075124d1966 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sun, 23 Jun 2019 21:50:49 +0100 Subject: 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. --- backends/platform/ios7/ios7_osys_events.cpp | 48 ----------------------------- 1 file changed, 48 deletions(-) (limited to 'backends/platform/ios7/ios7_osys_events.cpp') 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; -- cgit v1.2.3