Fixed build (cherry picked from commit ebf2c49b505b67838f8fb00c0b2ed0ce03856f38)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
diff --git a/src/video/uikit/SDL_uikitview.m b/src/video/uikit/SDL_uikitview.m
index dab0e54..b9c3326 100644
--- a/src/video/uikit/SDL_uikitview.m
+++ b/src/video/uikit/SDL_uikitview.m
@@ -412,7 +412,7 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick;
SDL_SendKeyboardKey(SDL_PRESSED, scancode);
}
}
- if (SDL_TextInputActive()) {
+ if (SDL_IsTextInputActive()) {
[super pressesBegan:presses withEvent:event];
}
}
@@ -425,7 +425,7 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick;
SDL_SendKeyboardKey(SDL_RELEASED, scancode);
}
}
- if (SDL_TextInputActive()) {
+ if (SDL_IsTextInputActive()) {
[super pressesEnded:presses withEvent:event];
}
}
@@ -438,7 +438,7 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick;
SDL_SendKeyboardKey(SDL_RELEASED, scancode);
}
}
- if (SDL_TextInputActive()) {
+ if (SDL_IsTextInputActive()) {
[super pressesCancelled:presses withEvent:event];
}
}
@@ -446,7 +446,7 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick;
- (void)pressesChanged:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event
{
/* This is only called when the force of a press changes. */
- if (SDL_TextInputActive()) {
+ if (SDL_IsTextInputActive()) {
[super pressesChanged:presses withEvent:event];
}
}
diff --git a/src/video/uikit/SDL_uikitviewcontroller.m b/src/video/uikit/SDL_uikitviewcontroller.m
index ba49d6c..b9ccf6b 100644
--- a/src/video/uikit/SDL_uikitviewcontroller.m
+++ b/src/video/uikit/SDL_uikitviewcontroller.m
@@ -405,7 +405,7 @@ SDL_HideHomeIndicatorHintChanged(void *userdata, const char *name, const char *o
{
BOOL shouldStartTextInput = NO;
- if (!SDL_TextInputActive() && !hidingKeyboard && !rotatingOrientation) {
+ if (!SDL_IsTextInputActive() && !hidingKeyboard && !rotatingOrientation) {
shouldStartTextInput = YES;
}
@@ -434,7 +434,7 @@ SDL_HideHomeIndicatorHintChanged(void *userdata, const char *name, const char *o
{
BOOL shouldStopTextInput = NO;
- if (SDL_TextInputActive() && !showingKeyboard && !rotatingOrientation) {
+ if (SDL_IsTextInputActive() && !showingKeyboard && !rotatingOrientation) {
shouldStopTextInput = YES;
}