Fabio Alessandrelli
2a4efa3bcd
[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-25 23:13:13 +01:00
Fabio Alessandrelli
d70461b27e
[HTML5] Fix input not focusing canvas.
...
mousedown and touchstart should focus the canvas to ensure correct
application lifecycle.
(cherry picked from commit f13c7fc83e
)
2021-11-25 23:13:13 +01:00
Fabio Alessandrelli
d61fc468a2
[HTML5] Refactor JS library listeners to OS.
2021-10-05 15:13:41 +02:00
Fabio Alessandrelli
5e2e54a4b4
[HTML5] Refactor display/input JS library code.
2021-10-05 15:13:41 +02:00
Fabio Alessandrelli
b7ac3c1aeb
[HTML5] Implement mouse/touch/key events in JS library.
...
This makes us more independent from emscripten libraries, giving us more
control on the application lifecycle.
2021-10-05 15:13:41 +02:00