[Scummvm-git-logs] scummvm master -> 2435046146ec4635bfb5c92aad21ebcf13b4e8db

criezy criezy at scummvm.org
Wed Sep 22 23:12:30 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:
2435046146 IOS7: Support using Escape key on external keyboards


Commit: 2435046146ec4635bfb5c92aad21ebcf13b4e8db
    https://github.com/scummvm/scummvm/commit/2435046146ec4635bfb5c92aad21ebcf13b4e8db
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2021-09-23T00:12:19+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