[Scummvm-git-logs] scummvm branch-2-3 -> 00b6576dc9d0e1d04f894c6bc6623ea4cd6d71ee
criezy
criezy at scummvm.org
Wed Sep 22 23:13:46 UTC 2021
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:
00b6576dc9 IOS7: Support using Escape key on external keyboards
Commit: 00b6576dc9d0e1d04f894c6bc6623ea4cd6d71ee
https://github.com/scummvm/scummvm/commit/00b6576dc9d0e1d04f894c6bc6623ea4cd6d71ee
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2021-09-23T00:13:40+01:00
Commit Message:
IOS7: Support using Escape key on external keyboards
Changed paths:
backends/platform/ios7/ios7_keyboard.mm
diff --git a/backends/platform/ios7/ios7_keyboard.mm b/backends/platform/ios7/ios7_keyboard.mm
index 5117a7a7a9..46168278af 100644
--- a/backends/platform/ios7/ios7_keyboard.mm
+++ b/backends/platform/ios7/ios7_keyboard.mm
@@ -151,7 +151,8 @@
UIKeyCommand *downArrow = [UIKeyCommand keyCommandWithInput: UIKeyInputDownArrow modifierFlags: 0 action: @selector(downArrow:)];
UIKeyCommand *leftArrow = [UIKeyCommand keyCommandWithInput: UIKeyInputLeftArrow modifierFlags: 0 action: @selector(leftArrow:)];
UIKeyCommand *rightArrow = [UIKeyCommand keyCommandWithInput: UIKeyInputRightArrow modifierFlags: 0 action: @selector(rightArrow:)];
- return [[NSArray alloc] initWithObjects: upArrow, downArrow, leftArrow, rightArrow, nil];
+ UIKeyCommand *escapeKey = [UIKeyCommand keyCommandWithInput: UIKeyInputEscape modifierFlags: 0 action: @selector(escapeKey:)];
+ return [[NSArray alloc] initWithObjects: upArrow, downArrow, leftArrow, rightArrow, escapeKey, nil];
}
- (void) upArrow: (UIKeyCommand *) keyCommand {
@@ -170,6 +171,10 @@
[softKeyboard handleKeyPress:Common::KEYCODE_RIGHT];
}
+- (void) escapeKey: (UIKeyCommand *) keyCommand {
+ [softKeyboard handleKeyPress:Common::KEYCODE_ESCAPE];
+}
+
- (void) mainMenuKey {
[softKeyboard handleMainMenuKey];
}
More information about the Scummvm-git-logs
mailing list