diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-10-04 18:16:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-04 18:16:28 +0200 |
commit | 5b9b158354c9b3eaa5bcebd726347dd9db704096 (patch) | |
tree | 2e6a0906a3585772d7348ac820356dcac1ff47b6 /platform/iphone/os_iphone.cpp | |
parent | 7c2cda72b859509758f43e60fee6798b6175590b (diff) | |
parent | 275e537058ed870c4d37002f2110b7866d2ed1ae (diff) |
Merge pull request #11823 from endragor/virtual-keyboard-height
Allow to obtain virtual keyboard height
Diffstat (limited to 'platform/iphone/os_iphone.cpp')
-rw-r--r-- | platform/iphone/os_iphone.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/iphone/os_iphone.cpp b/platform/iphone/os_iphone.cpp index 5009f7d8ae..219e93facf 100644 --- a/platform/iphone/os_iphone.cpp +++ b/platform/iphone/os_iphone.cpp @@ -463,6 +463,14 @@ void OSIPhone::hide_virtual_keyboard() { _hide_keyboard(); }; +void OSIPhone::set_virtual_keyboard_height(int p_height) { + virtual_keyboard_height = p_height; +} + +int OSIPhone::get_virtual_keyboard_height() const { + return virtual_keyboard_height; +} + Error OSIPhone::shell_open(String p_uri) { return _shell_open(p_uri); }; @@ -576,6 +584,7 @@ OSIPhone::OSIPhone(int width, int height) { vm.resizable = false; set_video_mode(vm); event_count = 0; + virtual_keyboard_height = 0; _set_logger(memnew(SyslogLogger)); }; |