Max Hilbrunner
e29800ea7b
Javascript: Remove weird log
...
(cherry picked from commit 0c56e011ad
)
2018-06-01 18:00:51 +02:00
Leon Krause
868c44b239
Fix keyboard focus lock-out with HTML5 canvas in iframe
...
(cherry picked from commit 9080e96bc8
)
2018-05-13 22:17:53 +02:00
Leon Krause
66c0be642f
Fix relative mouse motion when captured in HTML5 platform
...
(cherry picked from commit d78b10313b
)
2018-05-13 21:52:14 +02:00
Hein-Pieter van Braam
5917063192
Merge pull request #18082 from RandomShaper/improve-gui-touch-3.0
...
Implement universal translation of touch to mouse (3.0)
2018-05-13 21:30:37 +02:00
Pedro J. Estébanez
e10a2e5999
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.
2018-04-30 19:04:35 +02:00
Leon Krause
c968c787e5
Disable Emscripten assertions in release_debug builds
...
The messages generated by some assertions can be confusing to users.
(cherry picked from commit d6c9d8d778
)
2018-04-29 15:01:29 +02:00
Fabio Alessandrelli
5e70e4469a
Fix bug in HTML5 HTTPClient.
...
The URL parameter already has a slash, adding an extra one results in
an invalid resource path
(cherry picked from commit b8c73b195f
)
2018-04-28 20:01:35 +02:00
Leon Krause
d3ffc8ad0c
Fix engine.js startGame() when loading from directory
...
(cherry picked from commit 3014e48ec5
)
2018-04-28 19:54:29 +02:00
Leon Krause
393e1ef4ee
Allow custom path when using engine.js preloadFile() with URL
...
(cherry picked from commit d373029382
)
2018-04-28 19:54:19 +02:00
Leon Krause
78b44eab0a
Fix engine.js preloadFile() with directories
...
(cherry picked from commit 6f1bddf4b5
)
2018-04-28 19:54:12 +02:00
Leon Krause
0f6626977b
Expose Emscripten libs to engine.js discreetly
...
(cherry picked from commit 63c7fc6358
)
2018-04-28 19:54:00 +02:00
Leon Krause
a423adbee6
Flush HTTPClient response data only on request/close in HTML5 platform
...
(cherry picked from commit 98039909f2
)
2018-02-19 22:42:38 +01:00
Leon Krause
c5b5fd61d4
Warn when polling HTTPClient synchronously in HTML5 platform
...
(cherry picked from commit ca9fa9cca8
)
2018-02-19 22:42:31 +01:00
Leon Krause
5bb269d01d
Disable insecure HTTP methods CONNECT and TRACE in HTML5 platform
...
(cherry picked from commit 2cd7bc04ea
)
2018-02-19 22:42:22 +01:00
Leon Krause
d5535d9357
Fix HTML5 HTTPClient response header retrieval
...
(cherry picked from commit 8a21f27f54
)
2018-02-19 22:42:08 +01:00
Leon Krause
2714b851bf
Fix HTML5 HTTPClient failure detection
...
(cherry picked from commit 9ea4452d21
)
2018-02-19 22:42:01 +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
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Duy-Nguyen TA
322cb08dd9
Fix macOS and other builds after #15299
...
Commit ammended by @akien-mga to fix more platforms.
2018-01-04 19:48:05 +01:00
Artem Varaksa
76b5f8b0df
Fixed missing parenthesis
2018-01-04 19:31:35 +03:00
Rémi Verschelde
d78335d87f
Add missing translation in Javascript export dialog
...
Also remove newlines from translated strings.
2018-01-04 16:08:24 +01:00
Emmanuel Leblond
e315c94900
Change OS::initialize signature to return Error (fix segfault on x11)
2018-01-04 15:15:55 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Rémi Verschelde
a68d15d509
Merge pull request #14597 from NathanWarden/linux_extensions
...
Updated Linux template extensions to match architecture.
2017-12-16 13:05:18 +01:00
Fabio Alessandrelli
206275f3e7
Fix javascript build error and improve #14604
2017-12-15 15:35:18 +01:00
mhilbrunner
966c054fc9
HTTP cleanup & better defaults
2017-12-14 10:59:42 +01:00
Nathan Warden
f89d78a7a4
Updated Linux template extensions to match architecture.
2017-12-12 16:09:48 -05:00
Rémi Verschelde
13c2ff9320
Style: Apply new clang-format 5.0 style to all files
2017-12-07 08:02:00 +01:00
Rémi Verschelde
76725b6c1f
Merge pull request #13387 from rraallvv/refactor
...
Add target helper functions and refactor (master)
2017-11-29 08:54:59 +01:00
Rhody Lugo
a65c0939fd
disable caching for targets using helper functions
2017-11-28 23:24:12 -04:00
Leon Krause
640d8cc5d2
Fix inverted relative mouse motion in HTML5 export
2017-11-29 00:56:47 +01:00
Rémi Verschelde
e1cf789593
Merge pull request #13278 from eska014/jseval-returntypes
...
Remove contrived JavaScript.eval() return types
2017-11-25 15:59:43 +01:00
Leon Krause
8de25d6e62
Remove contrived JavaScript.eval return types
2017-11-25 15:38:02 +01:00
Juan Linietsky
bc2e8d99e5
Made Vector::ptrw explicit for writing, compiler was sometimes using the wrong function,
...
leading to unnecesary copy on writes and reduced performance.
2017-11-25 00:09:40 -03:00
Ruslan Mustakov
d42c5646a5
Return and repair file logging
...
And make it configurable, too.
2017-11-21 16:43:44 +07:00
Ruslan Mustakov
8f0f327f02
Allow configuring iOS export
...
- EditorExportPlugin's _export_begin accepts all the arguments related
to the current export (is_debug, path, flags).
- EditorExportPlugin API is extended with methods allowing to configure
iOS export: add_ios_framework, add_ios_plist_content,
add_ios_linker_flags, add_ios_bundle_file.
- iOS export template now contains Godot as a static library so that
it can be linked with third-party Frameworks and GDNative static
libraries.
- Adds method to DirAccess for recursive copying of a directory.
- Fixes iOS export to work with Xcode 9 (released recently).
2017-11-21 01:16:49 +07:00
Rémi Verschelde
fa8bc8ef13
Merge pull request #13061 from eska014/html5-export
...
Export boot splash image and add option for custom HTML shell file in HTML5 export
2017-11-20 08:59:23 +01:00
Rémi Verschelde
ecf80fbbba
Merge pull request #12988 from akien-mga/xdg-home-paths
...
Add support for XDG Base Directory spec
2017-11-20 00:42:51 +01:00