[Scummvm-git-logs] scummvm master -> 8ef63e0e0d023edf8df9dd1e242c27dfe1319001
criezy
criezy at scummvm.org
Wed Sep 29 19:30:37 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:
68331af461 IOS7: Fix handling of arrow keys on iOS 15
8ef63e0e0d IOS7: Add support for upside down portrait orientation
Commit: 68331af46150f9f9b4f695252c43c100863bb2a7
https://github.com/scummvm/scummvm/commit/68331af46150f9f9b4f695252c43c100863bb2a7
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2021-09-29T20:30:15+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: 8ef63e0e0d023edf8df9dd1e242c27dfe1319001
https://github.com/scummvm/scummvm/commit/8ef63e0e0d023edf8df9dd1e242c27dfe1319001
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2021-09-29T20:30:16+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 e37eb18cdc..2011d1684b 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -233,6 +233,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 306f437082..de161a1de0 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