|
@@ -67,6 +67,7 @@ typedef void (*VideoPauseFunc)();
|
|
|
typedef void (*VideoStopFunc)();
|
|
|
typedef void (*SetKeepScreenOnFunc)(bool p_enabled);
|
|
|
typedef void (*AlertFunc)(const String &, const String &);
|
|
|
+typedef int (*VirtualKeyboardHeightFunc)();
|
|
|
|
|
|
class OS_Android : public OS_Unix {
|
|
|
public:
|
|
@@ -126,6 +127,7 @@ private:
|
|
|
GetScreenDPIFunc get_screen_dpi_func;
|
|
|
ShowVirtualKeyboardFunc show_virtual_keyboard_func;
|
|
|
HideVirtualKeyboardFunc hide_virtual_keyboard_func;
|
|
|
+ VirtualKeyboardHeightFunc get_virtual_keyboard_height_func;
|
|
|
SetScreenOrientationFunc set_screen_orientation_func;
|
|
|
GetUniqueIDFunc get_unique_id_func;
|
|
|
GetSystemDirFunc get_system_dir_func;
|
|
@@ -201,6 +203,7 @@ public:
|
|
|
virtual bool has_virtual_keyboard() const;
|
|
|
virtual void show_virtual_keyboard(const String &p_existing_text, const Rect2 &p_screen_rect = Rect2());
|
|
|
virtual void hide_virtual_keyboard();
|
|
|
+ virtual int get_virtual_keyboard_height() const;
|
|
|
|
|
|
void set_opengl_extensions(const char *p_gl_extensions);
|
|
|
void set_display_size(Size2 p_size);
|
|
@@ -240,7 +243,7 @@ public:
|
|
|
void joy_connection_changed(int p_device, bool p_connected, String p_name);
|
|
|
|
|
|
virtual bool _check_internal_feature_support(const String &p_feature);
|
|
|
- OS_Android(GFXInitFunc p_gfx_init_func, void *p_gfx_init_ud, OpenURIFunc p_open_uri_func, GetDataDirFunc p_get_data_dir_func, GetLocaleFunc p_get_locale_func, GetModelFunc p_get_model_func, GetScreenDPIFunc p_get_screen_dpi_func, ShowVirtualKeyboardFunc p_show_vk, HideVirtualKeyboardFunc p_hide_vk, SetScreenOrientationFunc p_screen_orient, GetUniqueIDFunc p_get_unique_id, GetSystemDirFunc p_get_sdir_func, VideoPlayFunc p_video_play_func, VideoIsPlayingFunc p_video_is_playing_func, VideoPauseFunc p_video_pause_func, VideoStopFunc p_video_stop_func, SetKeepScreenOnFunc p_set_keep_screen_on_func, AlertFunc p_alert_func, bool p_use_apk_expansion);
|
|
|
+ OS_Android(GFXInitFunc p_gfx_init_func, void *p_gfx_init_ud, OpenURIFunc p_open_uri_func, GetDataDirFunc p_get_data_dir_func, GetLocaleFunc p_get_locale_func, GetModelFunc p_get_model_func, GetScreenDPIFunc p_get_screen_dpi_func, ShowVirtualKeyboardFunc p_show_vk, HideVirtualKeyboardFunc p_hide_vk, VirtualKeyboardHeightFunc p_vk_height_func, SetScreenOrientationFunc p_screen_orient, GetUniqueIDFunc p_get_unique_id, GetSystemDirFunc p_get_sdir_func, VideoPlayFunc p_video_play_func, VideoIsPlayingFunc p_video_is_playing_func, VideoPauseFunc p_video_pause_func, VideoStopFunc p_video_stop_func, SetKeepScreenOnFunc p_set_keep_screen_on_func, AlertFunc p_alert_func, bool p_use_apk_expansion);
|
|
|
~OS_Android();
|
|
|
};
|
|
|
|