Hugo Locurcio
53e94a1ce1
Optimize images losslessly using oxipng -o6 --strip all --zopfli
2018-06-28 19:17:41 +02:00
Leon Krause
8d3ca2c137
Detect channel count, mix rate, and buffer length in HTML5 audio driver
...
Refactor WebAudio driver.
2018-06-08 02:50:58 +02:00
Max Hilbrunner
0c56e011ad
Javascript: Remove weird log
2018-05-24 20:18:21 +02:00
Leon Krause
975c0516a4
Build HTML5 release_debug with -Os, like release.
...
The increased build time is negligible in comparison to the decreased
file size.
2018-05-14 15:31:16 +02:00
Leon Krause
504ffda8d7
Small refactoring in HTML5 build scripts
...
Drop logic for non-existent 'profile' target
2018-05-14 15:30:27 +02:00
Rémi Verschelde
a415efa4b7
Merge pull request #18765 from eska014/enginejs-extalt
...
Facilitate using non-default filename extensions in HTML5 platform
2018-05-10 21:57:07 +02:00
Max Hilbrunner
486ec499f3
Merge pull request #18766 from eska014/html5-localcustomshell
...
Use local path for custom HTML5 shell export
2018-05-10 16:51:13 +02:00
Leon Krause
d1970888d3
Use local path for custom HTML5 shell export
2018-05-10 15:31:44 +02:00
Leon Krause
96f907c023
Accept non-default main packs in engine.js startGame()
...
Allows using startGame() with main packs exported as .zip, but also any
other custom extension, for example if a web game host does not allow
the .pck filename extension.
2018-05-10 15:08:19 +02:00
Max Hilbrunner
f20af4b632
Merge pull request #18753 from eska014/html5-iframefocus
...
Fix keyboard focus lock-out with HTML5 canvas in iframe
2018-05-10 15:01:24 +02:00
Leon Krause
32eb3e1b7d
Add Engine.setWebAssemblyFilenameExtension()
...
Some web game hosts only allow certain filename extensions. If .wasm is
not allowed, this function allows overriding the WebAssembly filename
extension to work around that restriction.
2018-05-10 14:50:34 +02:00
Leon Krause
9080e96bc8
Fix keyboard focus lock-out with HTML5 canvas in iframe
2018-05-10 02:42:47 +02:00
Leon Krause
d78b10313b
Fix relative mouse motion when captured in HTML5 platform
2018-05-10 01:02:48 +02:00
Pedro J. Estébanez
de9d40a953
Implement universal translation of touch to mouse
...
Now generating mouse events from touch is optional (on by default) and it's performed by `InputDefault` instead of having each OS abstraction doing it. (*)
The translation algorithm waits for a touch index to be pressed and tracks it translating its events to mouse events until it is raised, while ignoring other pointers.
Furthermore, to avoid an stuck "touch mouse", since not all platforms may report touches raised when the window is unfocused, it checks if touches are still down by the time it's focused again and if so it resets the state of the emulated mouse.
*: In the case of Windows, since it already provides touch-to-mouse translation by itself, "echo" mouse events are filtered out to have it working like the rest.
On X11 a little hack has been needed to avoid a case of a spurious mouse motion event that is generated during touch interaction.
Plus: Improve/fix tracking of current mouse position.
** Summary of changes to settings: **
- `display/window/handheld/emulate_touchscreen` becomes `input/pointing_devices/emulate_touch_from_mouse`
- New setting: `input/pointing_devices/emulate_mouse_from_touch`
2018-04-30 19:03:38 +02:00
Rémi Verschelde
919209907d
Merge pull request #17792 from eska014/enginejs-preloadpaths
...
Handle directories in engine.js preloadFile()
2018-04-04 22:26:14 +02:00
Rémi Verschelde
3ef85ddb8d
Merge pull request #17836 from eska014/detect-emconfig
...
Detect and configure JavaScript build per Emscripten configuration file
2018-04-03 10:33:33 +02:00
Fabio Alessandrelli
b8c73b195f
Fix bug in HTML5 HTTPClient.
...
The URL parameter already has a slash, adding an extra one results in
an invalid resource path
2018-03-30 14:31:18 +02:00
Leon Krause
5be7c3dcee
Detect and configure JavaScript build per Emscripten configuration file
2018-03-29 04:07:23 +02:00
Leon Krause
3014e48ec5
Fix engine.js startGame() when loading from directory
2018-03-27 11:26:34 +02:00
Leon Krause
d373029382
Allow custom path when using engine.js preloadFile() with URL
2018-03-27 11:26:29 +02:00
Leon Krause
6f1bddf4b5
Fix engine.js preloadFile() with directories
2018-03-27 11:26:25 +02:00
Leon Krause
63c7fc6358
Expose Emscripten libs to engine.js discreetly
2018-03-27 09:12:08 +02:00
Leon Krause
d8d9eea722
Refactor JavaScript platform build script
2018-03-26 19:46:56 +02:00
Leon Krause
25800ffb0e
Add RWLockDummy for NO_THREADS builds
2018-03-20 05:37:42 +01:00
Leon Krause
d6c9d8d778
Disable Emscripten assertions in release_debug builds
...
The messages generated by some assertions can be confusing to users.
2018-03-18 21:33:54 +01:00
Leon Krause
e06a56eac8
Fix typo in engine.js
2018-03-16 15:40:00 +01:00
Leon Krause
61026e62bf
Check only for WebGL 1.0, move test to HTML file
...
Whether to use WebGL 1.0 or 2.0 can only be determined at runtime after
reading project settings, so check for the lower version.
The test is now in the HTML file, so if desired WebGL 2.0 can be
checked early by changing the behaviour there.
2018-03-15 04:04:24 +01:00
Leon Krause
802b6d3669
Reinstate WebGL 1.0 driver in HTML5 platform
2018-03-07 20:38:14 +01:00
Marcelo Fernandez
d780d774aa
Clean and expose get_audio/video_driver_* funcs on OS class
2018-03-04 14:18:05 -03:00
Rémi Verschelde
df522cf4e1
Merge pull request #16781 from eska014/html5-httpc
...
HTML5 HTTPClient fixes
2018-02-17 19:00:55 +01:00
Leon Krause
98039909f2
Flush HTTPClient response data only on request/close in HTML5 platform
2018-02-17 18:13:05 +01:00
Leon Krause
ca9fa9cca8
Warn when polling HTTPClient synchronously in HTML5 platform
2018-02-17 18:12:50 +01:00
Leon Krause
2cd7bc04ea
Disable insecure HTTP methods CONNECT and TRACE in HTML5 platform
2018-02-17 16:56:40 +01:00
Leon Krause
8a21f27f54
Fix HTML5 HTTPClient response header retrieval
2018-02-16 05:38:36 +01:00
Leon Krause
9ea4452d21
Fix HTML5 HTTPClient failure detection
2018-02-16 05:11:25 +01:00
Fabio Alessandrelli
9e2b1b3b00
Disabled mbedtls module in javascript platform
2018-02-14 01:26:34 +01:00
Fabio Alessandrelli
6fcc8b7e1f
Deleting OpenSSL module and library
2018-02-14 01:26:34 +01:00
Rémi Verschelde
8afe5b4d9f
Merge pull request #16059 from eska014/html5-notls
...
Disable OpenSSL module in HTML5 platform by default
2018-01-25 09:14:50 +01:00
Leon Krause
4a3aaaf276
Disable OpenSSL module in HTML5 platform by default
2018-01-25 09:07:07 +01:00
Leon Krause
dcc55bad20
Fix HTML5 JS API setResizeCanvasOnStart
2018-01-24 05:08:35 +01:00
x1212
eec2218e7c
HTML export: Make s3tc the standard Texture Format
2018-01-20 15:20:26 +01:00
Leon Krause
bd1750c076
Wrap Emscripten module into JS Engine singleton per SCons
...
Emscripten's meta DCE changes in 1.37.27(/28?) make it impossible to
keep using --pre-js for this
2018-01-13 19:40:59 +01:00
Leon Krause
5a1156347d
Fix HTML5 feature tags
...
'HTML5' is the platform tag, the 'JavaScript' tag indicates availability of
the JavaScript.eval singleton.
Also report texture compression support.
2018-01-12 00:32:17 +01:00
Rémi Verschelde
4ab4001ab2
Merge pull request #15447 from eska014/html5-optmode
...
Build WebAssembly release module with -Os to decrease file size
2018-01-07 17:47:15 +01:00
Leon Krause
4211e4453e
Build WebAssembly module with -Os to decrease file size
2018-01-07 17:43:06 +01:00
Leon Krause
2dbf8251bc
Initialize WebGL context in OS
2018-01-07 15:49:48 +01:00
Rémi Verschelde
b33bf23c6a
Merge pull request #15422 from eska014/html5-logger
...
Print without color control sequences in HTML5 platform
2018-01-07 00:30:58 +01:00
Leon Krause
efdca59a03
HTML5: Print without color control sequences
2018-01-07 00:04:09 +01:00
Leon Krause
cf5b074a95
Fix internal Emscripten JS API calls
...
Emscripten 1.37.24 no longer exports these by default
2018-01-06 15:53:04 +01:00
Guilherme Silva
ea02c62345
Add missing method for javascript
2018-01-05 13:37:31 -02:00