Integrated Phil Hassey's patch to fix SDL_IsScreenKeyboardShown on iOS (https://bugzilla.libsdl.org/show_bug.cgi?id=2660)

main
Alex Szpakowski 2014-07-23 22:35:14 -03:00
parent 029e0193c5
commit 05afbfdf2c
2 changed files with 4 additions and 3 deletions

View File

@ -49,7 +49,7 @@
- (void)hideKeyboard; - (void)hideKeyboard;
- (void)initializeKeyboard; - (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) SDL_Rect textInputRect;
@property (nonatomic, assign) int keyboardHeight; @property (nonatomic, assign) int keyboardHeight;

View File

@ -390,6 +390,7 @@ void _uikit_keyboard_set_height(int height) {
return; return;
} }
view.keyboardVisible = height > 0;
view.keyboardHeight = height; view.keyboardHeight = height;
_uikit_keyboard_update(); _uikit_keyboard_update();
} }