mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 23:37:09 -05:00
Fixed iOS keyboard positioning, based on the final position rather than the initial one
This commit is contained in:
parent
95ba06d73a
commit
f37e3f7f4b
|
|
@ -281,7 +281,7 @@ SDL_AppleTVControllerUIHintChanged(void *userdata, const char *name, const char
|
|||
- (void)keyboardWillShow:(NSNotification *)notification
|
||||
{
|
||||
#if !TARGET_OS_TV
|
||||
CGRect kbrect = [[notification userInfo][UIKeyboardFrameBeginUserInfoKey] CGRectValue];
|
||||
CGRect kbrect = [[notification userInfo][UIKeyboardFrameEndUserInfoKey] CGRectValue];
|
||||
|
||||
/* The keyboard rect is in the coordinate space of the screen/window, but we
|
||||
* want its height in the coordinate space of the view. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user