mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
[HTML5] Implement window blur in JS library.
Removes more emscripten HTML5 library dependencies.
This commit is contained in:
parent
b6315afc9a
commit
7d6c1fdb32
4 changed files with 12 additions and 22 deletions
|
|
@ -867,6 +867,14 @@ const GodotDisplay = {
|
|||
GodotDisplayListeners.add(document, 'webkitfullscreenchange', change_cb, false);
|
||||
},
|
||||
|
||||
godot_js_display_window_blur_cb__sig: 'vi',
|
||||
godot_js_display_window_blur_cb: function (callback) {
|
||||
const func = GodotRuntime.get_func(callback);
|
||||
GodotDisplayListeners.add(window, 'blur', function () {
|
||||
func();
|
||||
}, false);
|
||||
},
|
||||
|
||||
godot_js_display_notification_cb__sig: 'viiiii',
|
||||
godot_js_display_notification_cb: function (callback, p_enter, p_exit, p_in, p_out) {
|
||||
const canvas = GodotConfig.canvas;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue