Skip to content

Commit

Permalink
Integrated Phil Hassey's patch to fix SDL_IsScreenKeyboardShown on iOS (
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Jul 24, 2014
1 parent 029e019 commit 05afbfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/video/uikit/SDL_uikitview.h
Expand Up @@ -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;

Expand Down
5 changes: 3 additions & 2 deletions src/video/uikit/SDL_uikitview.m
Expand Up @@ -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();
}
Expand Down

0 comments on commit 05afbfd

Please sign in to comment.