diff options
author | James Cowgill <jcowgill@debian.org> | 2018-10-16 22:26:18 +0100 |
---|---|---|
committer | James Cowgill <jcowgill@debian.org> | 2018-10-16 22:26:18 +0100 |
commit | 08bb1c372efcc9e2054e64b80959f025c8f43744 (patch) | |
tree | f86dce95fab2840aa96e7c2253de95a27d1566cf /src/SFML/Window/iOS | |
parent | b175eed3ca950204c9b52fdcebc897f337b7bf19 (diff) |
New upstream version 2.5.1+dfsg
Diffstat (limited to 'src/SFML/Window/iOS')
-rw-r--r-- | src/SFML/Window/iOS/SFAppDelegate.mm | 6 | ||||
-rw-r--r-- | src/SFML/Window/iOS/SFView.mm | 6 | ||||
-rw-r--r-- | src/SFML/Window/iOS/SFViewController.hpp | 8 | ||||
-rw-r--r-- | src/SFML/Window/iOS/SFViewController.mm | 8 |
4 files changed, 11 insertions, 17 deletions
diff --git a/src/SFML/Window/iOS/SFAppDelegate.mm b/src/SFML/Window/iOS/SFAppDelegate.mm index 6b17384..ea69f41 100644 --- a/src/SFML/Window/iOS/SFAppDelegate.mm +++ b/src/SFML/Window/iOS/SFAppDelegate.mm @@ -56,6 +56,10 @@ namespace //////////////////////////////////////////////////////////// + (SFAppDelegate*)getInstance { + NSAssert(delegateInstance, + @"SFAppDelegate instance is nil, this means SFML was not properly initialized. " + "Make sure that the file defining your main() function includes <SFML/Main.hpp>"); + return delegateInstance; } @@ -173,7 +177,7 @@ namespace NSArray *supportedOrientations = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UISupportedInterfaceOrientations"]; if (!supportedOrientations) - return false; + return (1 << orientation) & [rootViewController supportedInterfaceOrientations]; int appFlags = 0; if ([supportedOrientations containsObject:@"UIInterfaceOrientationPortrait"]) diff --git a/src/SFML/Window/iOS/SFView.mm b/src/SFML/Window/iOS/SFView.mm index 063c61a..940d0a8 100644 --- a/src/SFML/Window/iOS/SFView.mm +++ b/src/SFML/Window/iOS/SFView.mm @@ -202,5 +202,11 @@ return self; } +//////////////////////////////////////////////////////////// +- (UITextAutocorrectionType) autocorrectionType +{ + return UITextAutocorrectionTypeNo; +} + @end diff --git a/src/SFML/Window/iOS/SFViewController.hpp b/src/SFML/Window/iOS/SFViewController.hpp index b8a77aa..2b65d35 100644 --- a/src/SFML/Window/iOS/SFViewController.hpp +++ b/src/SFML/Window/iOS/SFViewController.hpp @@ -56,14 +56,6 @@ - (BOOL)shouldAutorotate; //////////////////////////////////////////////////////////// -/// \brief Returns the supported orientations (iOS >= 6) -/// -/// \return A combination of all the supported orientations -/// -//////////////////////////////////////////////////////////// -- (NSUInteger)supportedInterfaceOrientations; - -//////////////////////////////////////////////////////////// // Member data //////////////////////////////////////////////////////////// @property (nonatomic) bool orientationCanChange; ///< Tells whether the controller's view can rotate or not diff --git a/src/SFML/Window/iOS/SFViewController.mm b/src/SFML/Window/iOS/SFViewController.mm index d8be047..8c23cdc 100644 --- a/src/SFML/Window/iOS/SFViewController.mm +++ b/src/SFML/Window/iOS/SFViewController.mm @@ -46,12 +46,4 @@ return self.orientationCanChange; } - -//////////////////////////////////////////////////////////// -- (NSUInteger)supportedInterfaceOrientations -{ - return UIInterfaceOrientationMaskAll; -} - - @end |