Age | Commit message (Collapse) | Author |
|
Release pressed events when the window is blurred on HTML5 platform
|
|
It used an old vendored version of acorn.js which seems to choke on this
trailing comma. This is not a problem for more recent Emscripten versions.
We disable the `comma-dangle` check in ESLint to prevent this issue.
|
|
|
|
[HTML5] Refactor audio drivers. Implement AudioWorklet w/o threads.
|
|
[HTML5] Fix wheel/touch callback modifying event after parse.
|
|
Performances are not great in general, bad on Firefox, on Chrome, well,
it could be an improvement. Leave it as a fallback for now, but can be
forced via project settings if desired (or custom JavaScript logic via
the "args" option).
I'm actually surprised this works, it involves so many allocations, but
there's no way around it when SharedArrayBuffer is not available :(.
|
|
[HTML5] Use browser mix rate by default on the Web.
|
|
The events should be duplicated or reinstantiated without
assuming that parse_input will consume them immediately.
|
|
Would attempt an out of bounds read, causing an exception.
|
|
Browsers doesn't really like forcing the mix rate, e.g. Firefox does not
allow input (microphone) if the mix rate is not the default one, Chrom*
will exhibit worse performances, etc.
|
|
[HTML5] Fix input not working when buffered.
|
|
After input buffering was reworked, input accumulation is now handled
outside of OS, and the JavaScript plaform never implemented that.
Additionally, the JavaScript platform is quite obnoxious about calling
specific APIs outside specific user triggered events.
This commit adds event flushing during the main iteration, and forces it
during keydown/keyup/mousedown/mouseup/touchstart/touchend/touchcanel
events (effectively only accumulating only "move" events).
|
|
|
|
- Tweak the Android platform logo to remove the Android wordmark,
as it can't be used without explicit permission.
|
|
Feature tag names are still case-sensitive, but this makes built-in
feature tags more consistent.
- `Windows` -> `windows`
- `OSX` -> `osx`
- `LinuxBSD` -> `linuxbsd`
- `Android` -> `android`
- `iOS` -> `ios`
- `HTML5` -> `html5`
- `JavaScript` -> `javascript`
- `UWP` -> `uwp`
|
|
Calinou/web-editor-improve-download-project-source-zip-name
Improve the generated ZIP archive name when using Download Project Source
|
|
Follow-up to #51002.
|
|
Update Godot Javascript FS library to manually depend on ERRNO_CODES.
|
|
This makes for easier organization since downloading a project
several times (or several different projects) will result in more
meaningful file names.
|
|
|
|
|
|
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,fave,findn,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint`
|
|
|
|
|
|
* Added a new macro SNAME() that constructs and caches a local stringname.
* Subsequent usages use the cached version.
* Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time.
* Replaced all theme usages by this new macro.
* Replace all signal emission usages by this new macro.
* Replace all call_deferred usages by this new macro.
This is part of ongoing work to optimize GUI and the editor.
|
|
|
|
Non-threads build are broken anyway.
|
|
The XR API changed a bit, and it's not just a rename, though probably an
easy update for someone who is qualified :).
|
|
Was looking for misuse of module headers without checking that the module is
actually enabled and got carried away...
|
|
The memory was resized in any case during start.
Mitigate Chromium issue:
https://bugs.chromium.org/p/v8/issues/detail?id=11863
Also fix a warning about SAFE_HEAP being a linker only flag.
|
|
* This PR adds the ability to disable classes when building.
* For now it's only possible to do this via command like:
`scons disable_classes=RayCast2D,Area3D`
* Eventually, a proper UI will be implemented to create a build config file to do this at large scale, as well as detect what is used in the project.
|
|
Strings are UTF-8 encoded and should be parsed as such, while it was
being parsed as a C string before.
|
|
Enabled by default.
|
|
|
|
|
|
|
|
Also MIDIMessage
|
|
|
|
Renames JSON.parse_string() to parse()
Renames JSON.decode_data() to stringify()
|
|
JavaScript callbacks created via the `JavaScript.create_callback` method
used to always return void.
With this patch they return the value returned by the Godot function as
one would expect.
|
|
[HTML5] Fix build without eval, library functions signatures.
|
|
|
|
Also fix download_buffer return type.
|
|
|
|
|
|
File handling APIs are typically considered part of I/O, and we did have most
`FileAccess` implementations in `core/io` already.
|
|
|
|
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
|
|
|
|
|