summaryrefslogtreecommitdiffstats
path: root/platform/javascript/os_javascript.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Style: Fix statements ending with ';;'Rémi Verschelde2017-01-161-1/+1
|
* Oops! Audio engine has vanished :DJuan Linietsky2017-01-151-1/+1
|
* Merge pull request #7519 from eska014/web-presentationRémi Verschelde2017-01-151-9/+3
|\ | | | | Improve Web export presentation
| * Improve usability and style in web export presentationeska2017-01-141-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | - Check for WebGL support, don't load if unsupported - Check for IndexedDB support - Make canvas support check message visible - Colored debug output for warnings and errors - Make it obvious status can be closed by clicking - Don't use status to display non-critical errors - Limit output message count - Add clear output button - Fix setting total memory
* | Style: Fix whole-line commented codeRémi Verschelde2017-01-141-4/+6
| | | | | | | | | | They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
* | rename Input.get_mouse_speed() to Input.get_last_mouse_speed()Juan Linietsky2017-01-131-2/+2
| |
* | renamed joystick to joypad everywhere around source code!Juan Linietsky2017-01-081-2/+2
| |
* | -Changed most project settings in the engine, so they have major and minor ↵Juan Linietsky2017-01-051-2/+2
| | | | | | | | | | | | | | | | categories. -Changed SectionedPropertyEditor to support this -Renamed Globals singleton to GlobalConfig, makes more sense. -Changed the logic behind persisten global settings, instead of the persist checkbox, a revert button is now available