godot/platform/javascript
Fabio Alessandrelli f56b1a5af5
[HTML5] Add checks to Gamepad API events.
In some conditions the events might be generated even when the `gamepad`
object is not accessible due to Security Context requirements.
This commit adds a check to avoid firing the handler in those cases.

(cherry picked from commit 91dbc288cc)
2021-11-20 11:46:13 +01:00
..
api Provide a getter for the project data directory. 2021-09-15 13:00:25 -07:00
export clang-format: Disable alignment of operands, too unreliable 2021-10-28 13:23:38 +02:00
js [HTML5] Add checks to Gamepad API events. 2021-11-20 11:46:13 +01:00
.eslintrc.engine.js [HTML5] Document Engine and EngineConfig (jsdoc). 2021-02-26 15:35:38 +01:00
.eslintrc.js HTML5: Fix minification error with Emscripten 1.39.9 2021-09-29 10:54:01 +02:00
.eslintrc.libs.js [HTML5] Refactor JS library listeners to OS. 2021-10-05 15:13:41 +02:00
README.md Add logo attribution for Android, HTML5 and Linux platform icons 2021-09-21 17:14:59 +02:00
SCsub [HTML5] Implement mouse/touch/key events in JS library. 2021-10-05 15:13:41 +02:00
audio_driver_javascript.cpp [HTML5] Refactor audio drivers. Implement AudioWorklet w/o threads. 2021-09-20 14:53:27 +02:00
audio_driver_javascript.h [HTML5] Refactor audio drivers. Implement AudioWorklet w/o threads. 2021-09-20 14:53:27 +02:00
detect.py [HTML5] Bump initial memory for Web editor 2021-10-18 16:09:04 +02:00
dom_keys.inc [HTML5] Add support for `physical_keycode`. 2021-05-06 23:19:46 +03:00
emscripten_helpers.py HTML5: Handle GODOT_VERSION_STATUS env var in @GODOT_VERSION@ 2021-09-21 17:14:58 +02:00
godot_audio.h [HTML5] Refactor audio drivers. Implement AudioWorklet w/o threads. 2021-09-20 14:53:27 +02:00
godot_js.h [HTML5] Refactor display/input JS library code. 2021-10-05 15:13:41 +02:00
http_client.h.inc [HTML5] Use 64KiB chunk size in JS HTTPClient. 2021-05-09 17:14:35 +02:00
http_client_javascript.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
javascript_main.cpp [HTML5] Fix target_fps when window loses focus. 2021-05-09 17:14:36 +02:00
javascript_runtime.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
javascript_singleton.cpp [HTML5] Fix JavaScript string parsing with new interface. 2021-07-13 10:20:02 +02:00
logo.png Optimize images losslessly using `oxipng -o6 --strip all --zopfli` 2019-10-12 23:23:33 +02:00
os_javascript.cpp [HTML5] Editor video driver option. Replace canvas on exit. 2021-10-19 15:52:02 +02:00
os_javascript.h [HTML5] Remove "maximize" support. 2021-10-05 15:13:41 +02:00
package-lock.json JS: Bump ansi-regex version for linter 2021-10-23 12:04:17 +02:00
package.json [HTML5] Update eslint and jsdoc dependencies. 2021-06-17 12:47:55 +02:00
platform_config.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
run_icon.png

README.md

HTML5 platform port

This folder contains the C++ and JavaScript code for the HTML5/WebAssembly platform port, compiled using Emscripten.

It also contains a ESLint linting setup (see package.json).

See also misc/dist/html folder for files used by this platform such as the HTML5 shell.

Artwork license

logo.png and run_icon.png are licensed under Creative Commons Attribution 3.0 Unported per the HTML5 logo usage guidelines.