summaryrefslogtreecommitdiffstats
path: root/platform/javascript
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Fix compilation warnings in JS and Windows buildsRémi Verschelde2019-06-151-1/+1
|/ / | | | | | | | | | | | | | | | | | | Warnings raised by Emscripten 1.38.0 and MinGW64 5.0.4 / GCC 8.3.0. JS can now build with `werror=yes warnings=extra`. MinGW64 still has a few warnings to resolve with `warnings=extra`, and only one with `warnings=all`. Part of #29033 and #29801.
* / Fix error macro calls not ending with semicolonRémi Verschelde2019-06-111-1/+1
|/ | | | | | | It's not necessary, but the vast majority of calls of error macros do have an ending semicolon, so it's best to be consistent. Most WARN_DEPRECATED calls did *not* have a semicolon, but there's no reason for them to be treated differently.
* Implement Clipboard API read when supported.Fabio Alessandrelli2019-05-292-0/+18
| | | | | | | Being async, the first time a value is pasted GUI elements will still return the previous one. This at least until 'clipboardchange' window event gets implemented by user agents.
* Kinda working HTML5 clipboard paste.Fabio Alessandrelli2019-05-291-0/+10
| | | | | | | | | | | | | | | | Listen to paste events to update local clipboard. CTRL+V still not working out of the box. To do that, We would need to change how we handle keypress, most likely making it worse and less safe. In the end, I'm not sure we can fix it properly for now. Maybe in the future, with the Clipboard API, support of which is still pretty limited on chrome, and only available to extensions in Firefox. For now, you can paste via: - Browser bar -> Edit -> Paste. - Middle mouse click (Linux only, copies secondary clipboard). And THEN press CTRL+V
* Add OS clipboard set support to OS JavascriptFabio Alessandrelli2019-05-282-0/+21
|
* Merge pull request #29032 from akien-mga/tools-exceptions-rttiRémi Verschelde2019-05-211-4/+6
|\ | | | | SCons: Keep exceptions and rtti on Android, iOS and HTML5 tools build
| * SCons: Keep exceptions and rtti on Android, iOS and HTML5 tools buildRémi Verschelde2019-05-201-4/+6
| | | | | | | | | | | | | | | | | | | | Those were disable to keep size small, and on Android avoid the dependency on the STL, but for tools build (editor) this is not really a concern. Note: as of today it's not possible to build tools=yes for those platforms, but this change is one of the necessary steps to enable it. Fixes #25262.
* | added a const keyword for a methods that return constant literal...hbina0852019-05-212-2/+2
|/
* Fix OS_Javascript execute methodFabio Alessandrelli2019-05-152-2/+2
| | | | | | Signature was changed in OS via: cd4449e7abe97b2bc883e2d182db2cc41eb35f8c
* SCons: Always use env.Prepend for CPPPATHRémi Verschelde2019-04-301-1/+1
| | | | | | Include paths are processed from left to right, so we use Prepend to ensure that paths to bundled thirdparty files will have precedence over system paths (e.g. `/usr/include` should have lowest priority).
* Move IDHandler JS module to platform from WebsockFabio Alessandrelli2019-04-122-0/+69
|
* Remove unused importsHendrikto2019-04-061-1/+0
|
* HTML5: Fix ETC export for GLES2 fallback on mobileRémi Verschelde2019-03-111-0/+3
|
* Fix directory check when exporting projectvolzhs2019-03-061-1/+1
| | | | Fix #26702
* Merge pull request #26633 from akien-mga/driver-fallback-etcRémi Verschelde2019-03-061-1/+1
|\ | | | | Disable driver fallback to GLES2 by default
| * Disable driver fallback to GLES2 by defaultRémi Verschelde2019-03-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GLES2 is not designed to be a drop-in replacement for the GLES3 backend, so the fallback mode has to be used knowingly. It *can* make sense for simple projects which make sure to handle the differences between both rendering backends, but most users should stick to one supported backend. By making it opt-in, we can now use this parameter to define whether to export ETC textures to Android and iOS when using GLES3 + Fallback. When using GLES3 without Fallback on Android, set the proper min GLES version in the AndroidManifest. Also made the option boolean and renamed it for clarity and to avoid conflict with the previous String option (which would always evaluate as "true" otherwise). Fixes #26569.
* | Merge pull request #26626 from rluders/misleading-error-message-exportRémi Verschelde2019-03-051-0/+4
|\ \ | | | | | | Fixing misleading error message when trying to export
| * | Fixes misleading error message when trying to exportRicardo Lüders2019-03-051-0/+4
| |/ | | | | | | | | | | | | This patch fixes the misleading error message when users try to "export all" into an invalid destination path. Closes #26539
* / Fix HTML5 quick preview URLbruvzg2019-03-051-1/+1
|/
* Improve VRAM texture compression checks for mobile/webRémi Verschelde2019-03-031-14/+19
| | | | | | | | | | | For HTML5, we need to support S3TC if running on desktop, and ETC or ETC2 for mobile, so make this explicit. Add logic to check for ETC2 support on GLES3, and remove incorrect ETC feature for GLES3 on Android. Fix ETC check invalidating templates on HTML5. Fixes #26476.
* SCons: Move platform-specific Opus config to its moduleRémi Verschelde2019-03-021-4/+0
|
* -Properly handle missing ETC support on exportJuan Linietsky2019-02-261-0/+6
| | | | | -Added ability for resource importers to save metadata -Added ability for resource importers to validate depending on project settings
* -Remove harcoded opengl extension testing from OS, ask rasterizer instead.Juan Linietsky2019-02-261-10/+0
| | | | -Fixed a bug where etc textures were imported broken
* Use stdout/-err for all messages in HTML5 platformLeon Krause2019-02-244-8/+8
|
* Fix file preloading warning in HTML5 platformLeon Krause2019-02-232-5/+2
|
* Fix typos with codespellRémi Verschelde2019-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | Using codespell 1.14.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang doubleclick lod nd numer que te unselect EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* Fix pixelized previews, but also instances of breaking ImageTexture cache. ↵Juan Linietsky2019-01-271-0/+5
| | | | Closes #25378.
* Allow requesting full screen during start-up in HTML5 platformLeon Krause2019-01-231-1/+14
|
* ExportDialog: Make error messages translatableRémi Verschelde2019-01-211-2/+2
| | | | Also fix missing newlines that caused #24202.
* Deal with Google's HTML5 autoplay policyLeon Krause2019-01-203-0/+16
| | | | Resume audio context after mouse, touch or key input.
* Merge pull request #25150 from eska014/html5-warningRémi Verschelde2019-01-201-2/+1
|\ | | | | Fix HTML5 build warning
| * Refactor OS_JavaScript headerLeon Krause2019-01-201-2/+1
| |
* | Fix HTML5 gamepad logic for Emscripten 1.38.22 compat breakageLeon Krause2019-01-201-1/+2
|/
* Implements OS_JavaScript::set_custom_mouse_cursorGuilherme Felipe2019-01-032-2/+124
|
* Update copyright statements to 2019Rémi Verschelde2019-01-0117-33/+33
| | | | Happy new year to the wonderful Godot community!
* Merge pull request #20385 from moiman100/unify-double-clickingRémi Verschelde2018-12-142-0/+32
|\ | | | | Added double clicking to all buttons on Linux and Javascript
| * Added double clicking to all buttonsMikko Mustonen2018-08-122-0/+32
| |
* | Merge pull request #20063 from moiman100/fix-button-maskRémi Verschelde2018-12-141-1/+4
|\ \ | | | | | | Unified button mask behavior across platforms
| * | Fixed button mask behaviormm2018-07-111-1/+4
| | |
* | | Implemented audio input support for JavaScript audio driverMarcelo Fernandez2018-11-263-10/+102
| | |
* | | Merge pull request #23389 from marcelofg55/multiple_extRémi Verschelde2018-11-021-3/+5
|\ \ \ | | | | | | | | Export for OS X on OS X now lets you select .dmg or .zip
| * | | Export for OS X on OS X now lets you select .dmg or .zipMarcelo Fernandez2018-11-011-3/+5
| | | |
* | | | Merge pull request #23387 from eska014/memgrowth-preloadRémi Verschelde2018-10-291-0/+4
|\ \ \ \ | | | | | | | | | | Enable --no-heap-copy flag for HTML5 builds
| * | | | Enable --no-heap-copy flag for HTML5 buildsLeon Krause2018-10-291-0/+4
| |/ / /
* / / / Add proper stubs for OS_JavaScript::execute(), get_process_id(), kill()Leon Krause2018-10-292-0/+22
|/ / / | | | | | | | | | Avoids linker warnings and errors about undefined references.
* | | Add comments to javascript wrapper parts.Zaven Muradyan2018-10-152-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | The code in pre.js and engine.js is a bit confusing to see in isolation, since the files aren't valid JS files by themselves. This just adds some explanatory text to both files. Fixes #22937.
* | | Fix compiler warnings in HTML5 platformLeon Krause2018-10-023-15/+18
| | |
* | | Fix build for Javascript platformmuiroc2018-10-012-5/+5
| | |
* | | Implement OS::set_icon in HTML5 platformLeon Krause2018-09-162-0/+53
| | |
* | | Merge pull request #21982 from luzpaz/misc-typosRémi Verschelde2018-09-131-1/+1
|\ \ \ | | | | | | | | Misc. typos