summaryrefslogtreecommitdiffstats
path: root/platform/web/display_server_web.h
diff options
context:
space:
mode:
authorAdam Scott <ascott.ca@gmail.com>2023-07-20 09:42:03 -0400
committerAdam Scott <ascott.ca@gmail.com>2023-10-09 11:50:01 -0400
commit78c2a08fae9dddb262a0e86ec49ebee2267b4a51 (patch)
tree0b61d1c4a4b43cd57aa5b3d3f94464f2b4d52263 /platform/web/display_server_web.h
parentc2b916751d7a52e7f002eb7361fe2b12c1cbc488 (diff)
downloadredot-engine-78c2a08fae9dddb262a0e86ec49ebee2267b4a51.tar.gz
Add `proxy_to_pthread` option to `platform=web`
Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
Diffstat (limited to 'platform/web/display_server_web.h')
-rw-r--r--platform/web/display_server_web.h31
1 files changed, 23 insertions, 8 deletions
diff --git a/platform/web/display_server_web.h b/platform/web/display_server_web.h
index 1653deff80..51c6ab3c0a 100644
--- a/platform/web/display_server_web.h
+++ b/platform/web/display_server_web.h
@@ -91,28 +91,43 @@ private:
// events
WASM_EXPORT static void fullscreen_change_callback(int p_fullscreen);
+ static void _fullscreen_change_callback(int p_fullscreen);
WASM_EXPORT static int mouse_button_callback(int p_pressed, int p_button, double p_x, double p_y, int p_modifiers);
+ static int _mouse_button_callback(int p_pressed, int p_button, double p_x, double p_y, int p_modifiers);
WASM_EXPORT static void mouse_move_callback(double p_x, double p_y, double p_rel_x, double p_rel_y, int p_modifiers);
+ static void _mouse_move_callback(double p_x, double p_y, double p_rel_x, double p_rel_y, int p_modifiers);
WASM_EXPORT static int mouse_wheel_callback(double p_delta_x, double p_delta_y);
+ static int _mouse_wheel_callback(double p_delta_x, double p_delta_y);
WASM_EXPORT static void touch_callback(int p_type, int p_count);
+ static void _touch_callback(int p_type, int p_count);
WASM_EXPORT static void key_callback(int p_pressed, int p_repeat, int p_modifiers);
+ static void _key_callback(const String &p_key_event_code, const String &p_key_event_key, int p_pressed, int p_repeat, int p_modifiers);
WASM_EXPORT static void vk_input_text_callback(const char *p_text, int p_cursor);
+ static void _vk_input_text_callback(const String &p_text, int p_cursor);
WASM_EXPORT static void gamepad_callback(int p_index, int p_connected, const char *p_id, const char *p_guid);
+ static void _gamepad_callback(int p_index, int p_connected, const String &p_id, const String &p_guid);
+ WASM_EXPORT static void js_utterance_callback(int p_event, int p_id, int p_pos);
+ static void _js_utterance_callback(int p_event, int p_id, int p_pos);
+ WASM_EXPORT static void request_quit_callback();
+ static void _request_quit_callback();
+ WASM_EXPORT static void window_blur_callback();
+ static void _window_blur_callback();
+ WASM_EXPORT static void update_voices_callback(int p_size, const char **p_voice);
+ static void _update_voices_callback(const Vector<String> &p_voices);
+ WASM_EXPORT static void update_clipboard_callback(const char *p_text);
+ static void _update_clipboard_callback(const String &p_text);
+ WASM_EXPORT static void send_window_event_callback(int p_notification);
+ static void _send_window_event_callback(int p_notification);
+ WASM_EXPORT static void drop_files_js_callback(const char **p_filev, int p_filec);
+ static void _drop_files_js_callback(const Vector<String> &p_files);
+
void process_joypads();
- WASM_EXPORT static void _js_utterance_callback(int p_event, int p_id, int p_pos);
static Vector<String> get_rendering_drivers_func();
static DisplayServer *create_func(const String &p_rendering_driver, WindowMode p_window_mode, VSyncMode p_vsync_mode, uint32_t p_flags, const Vector2i *p_position, const Vector2i &p_resolution, int p_screen, Error &r_error);
static void _dispatch_input_event(const Ref<InputEvent> &p_event);
- WASM_EXPORT static void request_quit_callback();
- WASM_EXPORT static void window_blur_callback();
- WASM_EXPORT static void update_voices_callback(int p_size, const char **p_voice);
- WASM_EXPORT static void update_clipboard_callback(const char *p_text);
- WASM_EXPORT static void send_window_event_callback(int p_notification);
- WASM_EXPORT static void drop_files_js_callback(char **p_filev, int p_filec);
-
protected:
int get_current_video_driver() const;