mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 07:03:33 +02:00
Fix for non-app-store builds
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user