Skip to content

Commit

Permalink
demo app pause on bg
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Mattiello <[email protected]>
  • Loading branch information
JoeMatt committed Feb 20, 2025
1 parent ca6f989 commit fecc717
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CoresRetro/RetroArch/PVRetroArch_Test/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
return YES;
}

- (void)applicationDidBecomeActive:(NSNotification *)notification {
[core setPauseEmulation:false];
}

- (void)applicationDidResignActive:(NSNotification *)notification {
[core setPauseEmulation:true];
}

- (void)sendEvent:(UIEvent *)event {
if (core != nil) {
[core sendEvent:event];
Expand Down

0 comments on commit fecc717

Please sign in to comment.