1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Implement DisplayServer.beep.

This commit is contained in:
Pāvels Nadtočajevs
2024-11-17 22:40:39 +02:00
parent 0f20e67d8d
commit 84650f2018
17 changed files with 146 additions and 0 deletions

View File

@@ -677,6 +677,9 @@ Error DisplayServer::file_dialog_with_options_show(const String &p_title, const
return ERR_UNAVAILABLE;
}
void DisplayServer::beep() const {
}
int DisplayServer::keyboard_get_layout_count() const {
return 0;
}
@@ -998,6 +1001,8 @@ void DisplayServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("file_dialog_show", "title", "current_directory", "filename", "show_hidden", "mode", "filters", "callback"), &DisplayServer::file_dialog_show);
ClassDB::bind_method(D_METHOD("file_dialog_with_options_show", "title", "current_directory", "root", "filename", "show_hidden", "mode", "filters", "options", "callback"), &DisplayServer::file_dialog_with_options_show);
ClassDB::bind_method(D_METHOD("beep"), &DisplayServer::beep);
ClassDB::bind_method(D_METHOD("keyboard_get_layout_count"), &DisplayServer::keyboard_get_layout_count);
ClassDB::bind_method(D_METHOD("keyboard_get_current_layout"), &DisplayServer::keyboard_get_current_layout);
ClassDB::bind_method(D_METHOD("keyboard_set_current_layout", "index"), &DisplayServer::keyboard_set_current_layout);