summaryrefslogtreecommitdiffstats
path: root/platform/javascript/js/libs/library_godot_input.js
Commit message (Collapse)AuthorAgeFilesLines
* [HTML5] Fix gamepad samples not being properly reset.Fabio Alessandrelli2022-01-311-1/+1
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix files_dropped in HTML5 export.Luis Sanchez2021-12-031-1/+1
| | | | (Ignore trailing slash when creating the temporary directory)
* [HTML5] Fix multi-touch input handling.Fabio Alessandrelli2021-11-301-3/+3
| | | | | | The code to populate the input data for WebAssembly was incorrectly overriding values when multiple touches were present due to wrong indexing.
* [HTML5] Fix focus (again) in Firefox's iframes.Fabio Alessandrelli2021-11-261-2/+6
| | | | | | | | This actually makes sense(?), when running inside an iframe the active element might be our canvas, while the iframe itself is not active in the parent window. Since we consume the event, the iframe does not get focused in Firefox (but does in Chromium-based browsers), so we must always call focus to handle such occasions.
* [HTML5] Add checks to Gamepad API events.Fabio Alessandrelli2021-11-191-2/+6
| | | | | | 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.
* [HTML5] Fix input not focusing canvas.Fabio Alessandrelli2021-11-191-0/+6
| | | | | mousedown and touchstart should focus the canvas to ensure correct application lifecycle.
* [HTML5] Refactor JS library listeners to OS.Fabio Alessandrelli2021-10-051-18/+18
|
* [HTML5] Refactor display/input JS library code.Fabio Alessandrelli2021-10-051-11/+404
|
* [HTML5] Implement mouse/touch/key events in JS library.Fabio Alessandrelli2021-10-051-0/+133
This makes us more independent from emscripten libraries, giving us more control on the application lifecycle.