Android: Hardware keyboard connection status callback
Adds a DisplayServer method to register hardware keyboard connection change callback.
This commit is contained in:
@ -1033,6 +1033,7 @@ void DisplayServer::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("virtual_keyboard_get_height"), &DisplayServer::virtual_keyboard_get_height);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("has_hardware_keyboard"), &DisplayServer::has_hardware_keyboard);
|
||||
ClassDB::bind_method(D_METHOD("set_hardware_keyboard_connection_change_callback", "callable"), &DisplayServer::set_hardware_keyboard_connection_change_callback);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("cursor_set_shape", "shape"), &DisplayServer::cursor_set_shape);
|
||||
ClassDB::bind_method(D_METHOD("cursor_get_shape"), &DisplayServer::cursor_get_shape);
|
||||
|
||||
@ -271,6 +271,7 @@ public:
|
||||
virtual Color get_accent_color() const { return Color(0, 0, 0, 0); }
|
||||
virtual Color get_base_color() const { return Color(0, 0, 0, 0); }
|
||||
virtual void set_system_theme_change_callback(const Callable &p_callable) {}
|
||||
virtual void set_hardware_keyboard_connection_change_callback(const Callable &p_callable) {}
|
||||
|
||||
private:
|
||||
static bool window_early_clear_override_enabled;
|
||||
|
||||
Reference in New Issue
Block a user