Fix for non-app-store builds

This commit is contained in:
Henrik Rydgård
2024-06-05 23:30:22 +02:00
parent 584d07ea8e
commit 78a3cb5689
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -499,6 +499,9 @@ void GLRenderLoop(IOSGLESContext *graphicsContext) {
0 /* bearing */);
}
// See PPSSPPUIApplication.mm for the other method
#if PPSSPP_PLATFORM(IOS_APP_STORE)
- (void)pressesBegan:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event {
KeyboardPressesBegan(presses, event);
}
@@ -511,6 +514,8 @@ void GLRenderLoop(IOSGLESContext *graphicsContext) {
KeyboardPressesEnded(presses, event);
}
#endif
// The below is inspired by https://stackoverflow.com/questions/7253477/how-to-display-the-iphone-ipad-keyboard-over-a-full-screen-opengl-es-app
// It's a bit limited but good enough.
+5
View File
@@ -571,6 +571,9 @@ extern float g_safeInsetBottom;
g_iCadeTracker.ButtonUp(button);
}
// See PPSSPPUIApplication.mm for the other method
#if PPSSPP_PLATFORM(IOS_APP_STORE)
- (void)pressesBegan:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event {
KeyboardPressesBegan(presses, event);
}
@@ -583,6 +586,8 @@ extern float g_safeInsetBottom;
KeyboardPressesEnded(presses, event);
}
#endif
- (void)controllerDidConnect:(NSNotification *)note
{
if (![[GCController controllers] containsObject:self.gameController]) self.gameController = nil;