Skip to content
Permalink
Browse files

Integrated Phil Hassey's patch to fix SDL_IsScreenKeyboardShown on iOS (

  • Loading branch information
slime73 committed Jul 24, 2014
1 parent 029e019 commit 05afbfdf2ca1b32911f694c432adc781a3211551
Showing with 4 additions and 3 deletions.
  1. +1 −1 src/video/uikit/SDL_uikitview.h
  2. +3 −2 src/video/uikit/SDL_uikitview.m
@@ -49,7 +49,7 @@
- (void)hideKeyboard;
- (void)initializeKeyboard;

@property (nonatomic, readonly, assign, getter=isKeyboardVisible) BOOL keyboardVisible;
@property (nonatomic, assign, getter=isKeyboardVisible) BOOL keyboardVisible;
@property (nonatomic, assign) SDL_Rect textInputRect;
@property (nonatomic, assign) int keyboardHeight;

@@ -387,9 +387,10 @@ void _uikit_keyboard_update() {
void _uikit_keyboard_set_height(int height) {
SDL_uikitview *view = getWindowView(SDL_GetFocusWindow());
if (view == nil) {
return ;
return;
}


view.keyboardVisible = height > 0;
view.keyboardHeight = height;
_uikit_keyboard_update();
}

0 comments on commit 05afbfd

Please sign in to comment.