mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
[HTML5] Implement JavaScript PWA update callbacks.
Allows detecting when a new version of the progressive web app service worker is waiting (i.e. an update is pending), along a function to force the update and reload all clients.
This commit is contained in:
parent
3cc72ac03f
commit
948e66c3d6
8 changed files with 119 additions and 0 deletions
|
|
@ -49,6 +49,8 @@ extern void godot_js_os_fs_sync(void (*p_callback)());
|
|||
extern int godot_js_os_execute(const char *p_json);
|
||||
extern void godot_js_os_shell_open(const char *p_uri);
|
||||
extern int godot_js_os_hw_concurrency_get();
|
||||
extern int godot_js_pwa_cb(void (*p_callback)());
|
||||
extern int godot_js_pwa_update();
|
||||
|
||||
// Input
|
||||
extern void godot_js_input_mouse_button_cb(int (*p_callback)(int p_pressed, int p_button, double p_x, double p_y, int p_modifiers));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue