mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-10 04:55:44 +00:00
Fixed build
This commit is contained in:
parent
38c63afd64
commit
ebf2c49b50
|
@ -412,7 +412,7 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick;
|
||||||
SDL_SendKeyboardKey(SDL_PRESSED, scancode);
|
SDL_SendKeyboardKey(SDL_PRESSED, scancode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (SDL_TextInputActive()) {
|
if (SDL_IsTextInputActive()) {
|
||||||
[super pressesBegan:presses withEvent:event];
|
[super pressesBegan:presses withEvent:event];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -425,7 +425,7 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick;
|
||||||
SDL_SendKeyboardKey(SDL_RELEASED, scancode);
|
SDL_SendKeyboardKey(SDL_RELEASED, scancode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (SDL_TextInputActive()) {
|
if (SDL_IsTextInputActive()) {
|
||||||
[super pressesEnded:presses withEvent:event];
|
[super pressesEnded:presses withEvent:event];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -438,7 +438,7 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick;
|
||||||
SDL_SendKeyboardKey(SDL_RELEASED, scancode);
|
SDL_SendKeyboardKey(SDL_RELEASED, scancode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (SDL_TextInputActive()) {
|
if (SDL_IsTextInputActive()) {
|
||||||
[super pressesCancelled:presses withEvent:event];
|
[super pressesCancelled:presses withEvent:event];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -446,7 +446,7 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick;
|
||||||
- (void)pressesChanged:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event
|
- (void)pressesChanged:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event
|
||||||
{
|
{
|
||||||
/* This is only called when the force of a press changes. */
|
/* This is only called when the force of a press changes. */
|
||||||
if (SDL_TextInputActive()) {
|
if (SDL_IsTextInputActive()) {
|
||||||
[super pressesChanged:presses withEvent:event];
|
[super pressesChanged:presses withEvent:event];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -405,7 +405,7 @@ SDL_HideHomeIndicatorHintChanged(void *userdata, const char *name, const char *o
|
||||||
{
|
{
|
||||||
BOOL shouldStartTextInput = NO;
|
BOOL shouldStartTextInput = NO;
|
||||||
|
|
||||||
if (!SDL_TextInputActive() && !hidingKeyboard && !rotatingOrientation) {
|
if (!SDL_IsTextInputActive() && !hidingKeyboard && !rotatingOrientation) {
|
||||||
shouldStartTextInput = YES;
|
shouldStartTextInput = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -434,7 +434,7 @@ SDL_HideHomeIndicatorHintChanged(void *userdata, const char *name, const char *o
|
||||||
{
|
{
|
||||||
BOOL shouldStopTextInput = NO;
|
BOOL shouldStopTextInput = NO;
|
||||||
|
|
||||||
if (SDL_TextInputActive() && !showingKeyboard && !rotatingOrientation) {
|
if (SDL_IsTextInputActive() && !showingKeyboard && !rotatingOrientation) {
|
||||||
shouldStopTextInput = YES;
|
shouldStopTextInput = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue