[Scummvm-git-logs] scummvm branch-2-3 -> bcd1f9e56c81fb00d5409c62e5839796d7680354

criezy criezy at scummvm.org
Wed Sep 29 19:31:29 UTC 2021


This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a85ea074b0 IOS7: Fix handling of arrow keys on iOS 15
bcd1f9e56c IOS7: Add support for upside down portrait orientation


Commit: a85ea074b0d527a0e03f449896bbe8c898218d9c
    https://github.com/scummvm/scummvm/commit/a85ea074b0d527a0e03f449896bbe8c898218d9c
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2021-09-29T20:31:04+01:00

Commit Message:
IOS7: Fix handling of arrow keys on iOS 15

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 f7e3798956..b53e672e3f 100644
--- a/backends/platform/ios7/ios7_keyboard.mm
+++ b/backends/platform/ios7/ios7_keyboard.mm
@@ -150,7 +150,7 @@
 	// In iOS 15 the UIKeyCommand has a new property wantsPriorityOverSystemBehavior that is needed to
 	// receive some keys (such as the arrow keys).
 	if ([keyCommand respondsToSelector:@selector(setWantsPriorityOverSystemBehavior:)]) {
-		[UIKeyCommand setValue:[NSNumber numberWithBool: YES] forKey:@"wantsPriorityOverSystemBehavior"];
+		[keyCommand setValue:[NSNumber numberWithBool:YES] forKey:@"wantsPriorityOverSystemBehavior"];
 	}
 }
 


Commit: bcd1f9e56c81fb00d5409c62e5839796d7680354
    https://github.com/scummvm/scummvm/commit/bcd1f9e56c81fb00d5409c62e5839796d7680354
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2021-09-29T20:31:05+01:00

Commit Message:
IOS7: Add support for upside down portrait orientation

Changed paths:
    NEWS.md
    backends/platform/ios7/ios7_common.h
    backends/platform/ios7/ios7_osys_events.cpp
    dists/ios7/Info.plist
    dists/ios7/Info.plist.in


diff --git a/NEWS.md b/NEWS.md
index 4d69b91f2c..ec41ecd6f3 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -225,6 +225,7 @@ For a more comprehensive changelog of the latest experimental code, see:
  iOS port:
    - Fixed using arrow keys on physical keyboard in iOS 15.
    - Fixed rotating the device while ScummVM is inactive.
+   - Added support for upside down portrait orientation.
 
  macOS port:
    - Added support for Dark Mode.
diff --git a/backends/platform/ios7/ios7_common.h b/backends/platform/ios7/ios7_common.h
index f88ed51395..794032e2f7 100644
--- a/backends/platform/ios7/ios7_common.h
+++ b/backends/platform/ios7/ios7_common.h
@@ -47,6 +47,7 @@ enum InputEvent {
 
 enum ScreenOrientation {
 	kScreenOrientationPortrait,
+	kScreenOrientationFlippedPortrait,
 	kScreenOrientationLandscape,
 	kScreenOrientationFlippedLandscape
 };
diff --git a/backends/platform/ios7/ios7_osys_events.cpp b/backends/platform/ios7/ios7_osys_events.cpp
index 30d32d857d..ae7bbc79d7 100644
--- a/backends/platform/ios7/ios7_osys_events.cpp
+++ b/backends/platform/ios7/ios7_osys_events.cpp
@@ -363,6 +363,9 @@ void  OSystem_iOS7::handleEvent_orientationChanged(int orientation) {
 	case 1:
 		newOrientation = kScreenOrientationPortrait;
 		break;
+	case 2:
+		newOrientation = kScreenOrientationFlippedPortrait;
+		break;
 	case 3:
 		newOrientation = kScreenOrientationLandscape;
 		break;
diff --git a/dists/ios7/Info.plist b/dists/ios7/Info.plist
index 21837fd4fd..6a4af68d19 100644
--- a/dists/ios7/Info.plist
+++ b/dists/ios7/Info.plist
@@ -50,12 +50,14 @@
 		<string>UIInterfaceOrientationLandscapeLeft</string>
 		<string>UIInterfaceOrientationLandscapeRight</string>
 		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
 	</array>
 	<key>UISupportedInterfaceOrientations~ipad</key>
 	<array>
 		<string>UIInterfaceOrientationLandscapeLeft</string>
 		<string>UIInterfaceOrientationLandscapeRight</string>
 		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
 	</array>
 </dict>
 </plist>
diff --git a/dists/ios7/Info.plist.in b/dists/ios7/Info.plist.in
index 161893071b..68d8a506df 100644
--- a/dists/ios7/Info.plist.in
+++ b/dists/ios7/Info.plist.in
@@ -50,12 +50,14 @@
 		<string>UIInterfaceOrientationLandscapeLeft</string>
 		<string>UIInterfaceOrientationLandscapeRight</string>
 		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
 	</array>
 	<key>UISupportedInterfaceOrientations~ipad</key>
 	<array>
 		<string>UIInterfaceOrientationLandscapeLeft</string>
 		<string>UIInterfaceOrientationLandscapeRight</string>
 		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
 	</array>
 </dict>
 </plist>




More information about the Scummvm-git-logs mailing list