[Scummvm-git-logs] scummvm master -> b705262b098c9464d67b5e3f0a40c3eb371ea9e4
digitall
dgturner at iee.org
Thu Oct 18 20:48:06 CEST 2018
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:
b705262b09 IOS: Hide keyboard when rotating to landscape
Commit: b705262b098c9464d67b5e3f0a40c3eb371ea9e4
https://github.com/scummvm/scummvm/commit/b705262b098c9464d67b5e3f0a40c3eb371ea9e4
Author: Jozef Legény (jozef.jr at legeny.sk)
Date: 2018-10-18T19:48:00+01:00
Commit Message:
IOS: Hide keyboard when rotating to landscape
On iOS12 at least, the rotation did not force the keyboard to hide. This
fix will force it to be retracted in landscape and restored when
rotating back to the portrait position.
Changed paths:
backends/platform/ios7/ios7_video.mm
diff --git a/backends/platform/ios7/ios7_video.mm b/backends/platform/ios7/ios7_video.mm
index ee558a1..7ce19f1 100644
--- a/backends/platform/ios7/ios7_video.mm
+++ b/backends/platform/ios7/ios7_video.mm
@@ -870,6 +870,13 @@ uint getSizeNextPOT(uint size) {
- (void)deviceOrientationChanged:(UIDeviceOrientation)orientation {
[self addEvent:InternalEvent(kInputOrientationChanged, orientation, 0)];
+
+ BOOL isLandscape = (self.bounds.size.width > self.bounds.size.height);
+ if (isLandscape) {
+ [_keyboardView hideKeyboard];
+ } else {
+ [_keyboardView showKeyboard];
+ }
}
- (UITouch *)secondTouchOtherTouchThan:(UITouch *)touch in:(NSSet *)set {
More information about the Scummvm-git-logs
mailing list