aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone/iphone_main.m
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/iphone/iphone_main.m')
-rw-r--r--backends/platform/iphone/iphone_main.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/backends/platform/iphone/iphone_main.m b/backends/platform/iphone/iphone_main.m
index 2391e7cbac..b338bd719a 100644
--- a/backends/platform/iphone/iphone_main.m
+++ b/backends/platform/iphone/iphone_main.m
@@ -88,6 +88,18 @@ int main(int argc, char** argv) {
[NSThread detachNewThreadSelector:@selector(mainLoop:) toTarget:self withObject:nil];
}
+- (void)applicationSuspend:(GSEventRef)event {
+ [self setApplicationBadge:NSLocalizedString(@"ON", nil)];
+ [_view applicationSuspend];
+}
+
+- (void)applicationResume:(GSEventRef)event {
+ [self removeApplicationBadge];
+ [UIHardware _setStatusBarHeight:0.0f];
+ [self setStatusBarMode:2 orientation:0 duration:0.0f fenceID:0];
+ [_view applicationResume];
+}
+
- (void)deviceOrientationChanged:(GSEvent *)event {
int screenOrientation = GSEventDeviceOrientation(event);
[_view deviceOrientationChanged: screenOrientation];