diff options
Diffstat (limited to 'platform/web/display_server_web.h')
-rw-r--r-- | platform/web/display_server_web.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/web/display_server_web.h b/platform/web/display_server_web.h index 2e50a6bbc8..3b03b102cd 100644 --- a/platform/web/display_server_web.h +++ b/platform/web/display_server_web.h @@ -37,6 +37,8 @@ #include <emscripten/html5.h> class DisplayServerWeb : public DisplayServer { + // No need to register with GDCLASS, it's platform-specific and nothing is added. + private: struct JSTouchEvent { uint32_t identifier[32] = { 0 }; @@ -79,6 +81,7 @@ private: MouseButton last_click_button_index = MouseButton::NONE; bool swap_cancel_ok = false; + bool tts = false; // utilities static void dom2godot_mod(Ref<InputEventWithModifiers> ev, int p_mod, Key p_keycode); @@ -213,6 +216,8 @@ public: virtual bool can_any_window_draw() const override; + virtual DisplayServer::VSyncMode window_get_vsync_mode(WindowID p_vsync_mode) const override; + // events virtual void process_events() override; |