summaryrefslogtreecommitdiffstats
path: root/platform/javascript/display_server_javascript.h
Commit message (Collapse)AuthorAgeFilesLines
* [HTML5] Custom Gamepad library to allow remapping.Fabio Alessandrelli2021-01-181-1/+1
| | | | | | | No longer use emscripten functions for gamepads, implement them as library functions in library_godot_display.js instead. This allows us to do a better job at "guessing" vendorId, productId, OS, etc. thus allowing us to better find the remapping for the controller.
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* [HTML5] Port JavaScript inline code to libraries.Fabio Alessandrelli2020-11-101-19/+16
| | | | | | | | | The API is implemented in javascript, and generates C functions that can be called from godot. This allows much cleaner code replacing all `EM_ASM` calls in our C++ code with plain C function calls. This also gets rid of few hacks and comes with few optimizations (e.g. custom cursor shapes should be much faster now).
* [HTML5] Add override keyword, cleanup methods.Fabio Alessandrelli2020-09-181-52/+52
|
* Implement HTML5 cancel/ok button swap on Windows.Fabio Alessandrelli2020-07-271-0/+3
| | | | Platform is detected on init via the `navigator.platform` string.
* [JS] Check canvas size each loop, force redraw.Fabio Alessandrelli2020-07-011-0/+6
| | | | Fix compatibility issues, achieve smoother resizing.
* More static methods in DisplayServerJavaScript.Fabio Alessandrelli2020-07-011-0/+11
| | | | Were static functions in cpp file, polluting global namespace.
* Refactor canvas ID and locale handling.Fabio Alessandrelli2020-07-011-1/+2
|
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-1/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Add drop files functionFabio Alessandrelli2020-05-101-0/+1
|
* DisplayServerJavaScript implementation.Fabio Alessandrelli2020-05-101-0/+187