summaryrefslogtreecommitdiffstats
path: root/platform/javascript/os_javascript.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Return and repair file loggingRuslan Mustakov2017-11-211-4/+0
| | | | And make it configurable, too.
* Merge pull request #12988 from akien-mga/xdg-home-pathsRémi Verschelde2017-11-201-5/+5
|\ | | | | Add support for XDG Base Directory spec
| * Rename OS::get_data_dir to OS::get_user_data_dirRémi Verschelde2017-11-171-5/+5
| | | | | | | | | | Will be needed to avoid confusion with system data path (XDG_DATA_HOME) and editor data dir in upcoming refactoring.
* | Merge pull request #13044 from eska014/enginejsRémi Verschelde2017-11-191-16/+14
|\ \ | | | | | | Change HTML5 start-up API
| * | Change HTML5 start-up APILeon Krause2017-11-191-16/+14
| |/ | | | | | | | | | | | | | | Rename engine.start() to startGame(), new start() takes string arguments handed directly to main(). Rename Engine.loadEngine() to load(). Add setLocale(), setResizeCanvasOnStart(), setExecutableName() and preloadFile().
* / Facilitate exposing platform-exclusive interfaces to all platformsLeon Krause2017-11-181-5/+0
|/ | | | | | | | | | | This makes the interfaces available, without implementation, in other platforms and the editor, which facilitates documenting platform-exclusive classes. Platform-exclusive APIs must be set up in platform/<platform>/api/api.cpp. Provide noop method-implementations where necessary. Also setup and document the HTML5 platform's JavaScript singleton.
* Move singleton management from ProjectSettings to EngineLeon Krause2017-11-141-3/+2
|
* Fix HTML5 mouse button release eventsLeon Krause2017-11-131-3/+4
|
* Make video mode initialization more intuitive, fixes #12022Juan Linietsky2017-11-091-5/+0
|
* Implemented physics plugAndreaCatania2017-11-041-5/+0
| | | | | | | | | | | | | | | | | | | | Moved init_physics Implemented physics 2D plug Fix clang Fix clang Fix static check Fix clang Fix static check Moved physics server initialization Moved physics server settings initialization
* Merge pull request #11782 from eska014/persistent-userfs-testHein-Pieter van Braam2017-10-031-5/+16
|\ | | | | Add OS::is_userfs_persistent, allow starting HTML5 platform in private mode
| * Add OS::is_userfs_persistent to check user:// persistenceLeon Krause2017-10-021-5/+16
| | | | | | | | Allows starting HTML5 export when IndexedDB is not available.
* | Extract logging logicRuslan Mustakov2017-09-251-0/+4
|/ | | | | | | | | | | | | | | | | | | Previously logging logic was scattered over OS class implementations with plenty of duplication. Major changes in this commit: - Extracted logging logic into a separate Logger hierarchy. It allows easy configuration of logging mechanism depending on compile-time or run-time configuration. - Implemented RotatedFileLogger which is usually used with StdLogger, providing persistency of logs. It is often important to be able to obtain logs of the game even in production to be able to understand what happened prior to some problem. On mobile there previously was no way to obtain the logs aside from having the device connected to your machine. - flush() is not performed in release mode for every logged line. It is only performed for errors.
* Fix mouse button state in HTML5 platformLeon Krause2017-09-191-8/+8
| | | | Regression from 844c5e12e664e3212feacc9ee3200e116556fbc7
* Merge pull request #11252 from marcelofg55/fix_noaudio_crashRémi Verschelde2017-09-171-5/+1
|\ | | | | Fix crash when no audio driver is available
| * Fix crash when no audio driver is availableMarcelo Fernandez2017-09-131-5/+1
| |
* | Fix enums bindingsMaxim Sheronov2017-09-131-1/+1
|/ | | | | Add missed bindings for enums Move some enums to class to have correct output of api.json
* Merge pull request #10914 from eska014/html5-main-notifRémi Verschelde2017-09-031-15/+16
|\ | | | | Prevent sending MainLoop notifications before initialized
| * HTML5: Prevent sending MainLoop notifications before initializedLeon Krause2017-09-031-15/+16
| |
* | Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|/
* p_screen param from get_screen_* funcs now default to the current screenMarcelo Fernandez2017-08-211-2/+0
|
* removed calls to cursor_set_visible on all platforms fixes #10167toger52017-08-081-1/+1
|
* Merge pull request #10105 from eska014/html5-touch-hintRémi Verschelde2017-08-071-1/+5
|\ | | | | Implement OS.has_touchscreen_ui_hint() in HTML5 platform
| * Implement touch-screen check in HTML5 platformL. Krause2017-07-281-1/+5
| |
* | Improve HTML5 canvas managementL. Krause2017-08-051-49/+66
|/ | | | | | - set_window_maximized hides page content - Fix sporadic full-screen render-size bug in Chromium - Smoother resizing for maximized canvas
* Merge pull request #9770 from eska014/html5-focusRémi Verschelde2017-07-231-29/+88
|\ | | | | Implement input focus behavior in HTML5
| * Implement input focus behavior in HTML5L. Krause2017-07-221-29/+88
| | | | | | | | | | | | - Key and mouse events are only consumed if canvas is focused - NOTIFICATION_WM_MOUSE_ENTER, _MOUSE_EXIT, _FOCUS_IN and _FOCUS_OUT are emitted
* | -Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky2017-07-191-3/+8
|/ | | | -Added system for feature overrides, it's pretty cool :)
* Update HTML5 platform for new InputEventsL. Krause2017-06-191-95/+96
|
* Removal of InputEvent as built-in Variant type..Juan Linietsky2017-05-201-60/+60
| | | | this might cause bugs I haven't found yet..
* Merge pull request #8625 from eska014/html5-cursorshapeRémi Verschelde2017-05-051-3/+32
|\ | | | | HTML5: Cursor style control
| * Implement cursor style control in HTML5 platformL. Krause2017-05-021-3/+32
| |
* | Merge pull request #8574 from eska014/html5-noglutRémi Verschelde2017-05-021-8/+10
|\ \ | |/ |/| Remove GLUT usage in HTML5 platform
| * Remove GLUT usage in HTML5 platformL. Krause2017-04-281-8/+10
| |
* | Implement mouse capture and hiding in HTML5 exportL. Krause2017-05-021-7/+49
| | | | | | | | MOUSE_MODE_CONFINED cannot be implemented.
* | Fix HTML5 key eventsL. Krause2017-04-291-3/+3
|/ | | | Regression from 86f5ac3
* Implement HTML5 touch eventsL. Krause2017-04-261-197/+109
|
* Reimplement HTML5 mouse input without GLUTL. Krause2017-04-251-20/+113
| | | | Fixes inverted scrolling on Chromium
* Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei2017-04-101-4/+4
| | | | | | | | Control set_pos -> set_position Control set_global_pos -> set_global_position [gs]et_mouse_pos -> [gs]et_mouse_position [gs]et_global_mouse_pos -> [gs]et_global_mouse_position fixes #8005
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* Merge pull request #8191 from eska014/webgl2-exportJuan Linietsky2017-03-291-2/+3
|\ | | | | WebGL 2 export per WebAssembly or asm.js
| * WebGL 2 export per WebAssembly or asm.jseska2017-03-291-2/+3
| |
* | Input: Remove usage of platform dependent event IDs.Andreas Haas2017-03-261-15/+3
|/ | | | | The ID property for InputEvents is set by `SceneTree` when sending the event down the tree. So there's no need for the platform specific code to set this value when it will later be overriden anyway...
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-217/+187
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Add API to access battery power stateJulian Murgia2017-03-041-1/+14
| | | | | | | | | | | | | | Done: - X11, server (tested) - Windows (developed, would be nice to retest) - OSX (not tested) Prepared (not developed): - Android (code is here, but may not compile) - iphone - winrt - bb10 - haiku - javascript
* Fixes to webgl/opengl es 3.0 for compatibility with webgl2.0, still does not ↵Juan Linietsky2017-02-221-0/+2
| | | | work though
* -renamed globals.h to global_config.cpp (this seems to have caused a few ↵Juan Linietsky2017-02-211-1/+1
| | | | | | modified files) -.pck and .zip exporting redone, seems to be working..
* Enable WebGL2 in web export, start fixing buildeska2017-02-011-28/+9
| | | | Will not yet compile
* Adapt platforms to AudioServer refactoringRémi Verschelde2017-01-161-26/+5
| | | | | | Fixes compilation on Windows and likely other platforms (at least as far as AudioServer changes were concerned), though they were not tested.
* Style: Prevent clang-format on JS codeRémi Verschelde2017-01-161-0/+14
|