mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
[HTML5] Add override keyword, cleanup methods.
This commit is contained in:
parent
179e6fabb4
commit
27ab97501b
4 changed files with 82 additions and 110 deletions
|
@ -46,24 +46,6 @@
|
|||
#include <emscripten.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
bool OS_JavaScript::has_touchscreen_ui_hint() const {
|
||||
/* clang-format off */
|
||||
return EM_ASM_INT_V(
|
||||
return 'ontouchstart' in window;
|
||||
);
|
||||
/* clang-format on */
|
||||
}
|
||||
|
||||
// Audio
|
||||
|
||||
int OS_JavaScript::get_audio_driver_count() const {
|
||||
return 1;
|
||||
}
|
||||
|
||||
const char *OS_JavaScript::get_audio_driver_name(int p_driver) const {
|
||||
return "JavaScript";
|
||||
}
|
||||
|
||||
// Lifecycle
|
||||
void OS_JavaScript::initialize() {
|
||||
OS_Unix::initialize_core();
|
||||
|
@ -201,10 +183,6 @@ String OS_JavaScript::get_name() const {
|
|||
return "HTML5";
|
||||
}
|
||||
|
||||
bool OS_JavaScript::can_draw() const {
|
||||
return true; // Always?
|
||||
}
|
||||
|
||||
String OS_JavaScript::get_user_data_dir() const {
|
||||
return "/userfs";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue