summaryrefslogtreecommitdiff
path: root/platform
AgeCommit message (Collapse)Author
2018-05-23More fixes to set_borderless_windowGuilherme Felipe
[x11] Preserve window size when calling this method. [osx] Make sure it don't make the window resizable if it's not needed. [windows] clean up the code.
2018-05-21Merge pull request #19070 from guilhermefelipecgs/fix_19033Max Hilbrunner
Fix mouse confined and set_borderless_window
2018-05-21Merge pull request #19082 from guilhermefelipecgs/fix_cursorMax Hilbrunner
Fix cursor not displaying arrow when transiting from mode captured to visible.
2018-05-21Fix #15678Guilherme Felipe
Fix cursor not displaying arrow when transiting from mode captured to visible.
2018-05-21Fix OSXCROSS build with clang-6.0Fabio Alessandrelli
2018-05-20Fix #19033Guilherme Felipe
- Fix a bug when mouse is confined don't update the cursor shape. - Don't let the mouse leave the window when resizing to a smaller resolution when MOUSE_MODE_CONFINED. - Fix set_borderless_window to preserve the actual video_mode.widht/height.
2018-05-16Merge pull request #18893 from eska014/html5-reldeb-OsRémi Verschelde
Build HTML5 release_debug with -Os
2018-05-15Merge pull request #18680 from Gamblify/DummyTextureLoaderRémi Verschelde
Dummy texture importer
2018-05-14Build HTML5 release_debug with -Os, like release.Leon Krause
The increased build time is negligible in comparison to the decreased file size.
2018-05-14Small refactoring in HTML5 build scriptsLeon Krause
Drop logic for non-existent 'profile' target
2018-05-13Merge pull request #15739 from poke1024/macos-catch-exceptionMax Hilbrunner
Catch NSException in macOS run loop to prevent crashs
2018-05-13[macOS] Fix numeric keys scan-codes remapping.bruvzg
2018-05-11Merge pull request #18751 from guilhermefelipecgs/fix_cursor_osxRémi Verschelde
Fix custom cursor disappearing on osx
2018-05-11Proper focus in/out handling on iOSRuslan Mustakov
PR #18675 (commit 96301e9) revealed a problem with how iOS lifecycle callbacks were handled by Godot. Before that PR it was possible to get NOTIFICATION_WM_FOCUS_IN callback without getting the corresponding NOTIFICATION_WM_FOCUS_OUT. That commit added a flag to ensure they are always coupled, but now there is an issue when, for example, you open a notification panel on iOS without moving the app to background. It resulted in view.stopAnimation being called without the corresponding startAnimation when the app moves to foreground again, so it looked like the game hanged. I changed focus out notification to be sent in applicationWillResignActive, because it makes more sense than to do it in applicationDidEnterBackground, because it is always called in pair with applicationDidBecomeActive, where focus in is sent. applicationDidEnterBackground may not come under circumstances that are now described as a comment in code.
2018-05-10Reset the cursor with Input.set_custom_mouse_cursor(null)Guilherme Felipe
2018-05-10Merge pull request #18765 from eska014/enginejs-extaltRémi Verschelde
Facilitate using non-default filename extensions in HTML5 platform
2018-05-10Merge pull request #18766 from eska014/html5-localcustomshellMax Hilbrunner
Use local path for custom HTML5 shell export
2018-05-10Use local path for custom HTML5 shell exportLeon Krause
2018-05-10Accept non-default main packs in engine.js startGame()Leon Krause
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-10Merge pull request #18753 from eska014/html5-iframefocusMax Hilbrunner
Fix keyboard focus lock-out with HTML5 canvas in iframe
2018-05-10Add Engine.setWebAssemblyFilenameExtension()Leon Krause
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-10Fix keyboard focus lock-out with HTML5 canvas in iframeLeon Krause
2018-05-10Merge pull request #18749 from eska014/html5-mousecapture-relRémi Verschelde
Fix relative motion with captured mouse in HTML5 platform
2018-05-09Fix custom cursor disappearing on osxGuilherme Felipe
2018-05-10Fix relative mouse motion when captured in HTML5 platformLeon Krause
2018-05-09Merge pull request #18716 from ↵Rémi Verschelde
guilhermefelipecgs/support_for_atlas_tex_on_cursor_2 Add support for atlas texture on set_custom_mouse_cursor
2018-05-09Add support for atlas texture on set_custom_mouse_cursorGuilherme Felipe
2018-05-09Dummy texture importerGustav Lund
Added a dummy importer for textures to use with the server platform. Allows for running a project in headless mode without crashing when loading scenes containing textured objects Also as a result decreases load time as no image files have to be loaded.
2018-05-09For uwp the ARM architecture needs to be in lower caseHein-Pieter van Braam
2018-05-08Merge pull request #18726 from volzhs/remove-legacyRémi Verschelde
Remove android compatibility under API 16
2018-05-09Remove android compatibility under API 16volzhs
2018-05-08Merge pull request #14622 from bruvzg/non-rectangular-windowsHein-Pieter van Braam
Experimental support for windows with per-pixel transparency.
2018-05-08Android: Increase targetSdkVersion to 27Rémi Verschelde
Matches the change for 2.1 in #18626, and the new requirements from Google for new apps starting with August 2018 (targetSdkVersion 26 or higher): https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html
2018-05-08Merge pull request #18665 from mhilbrunner/build-sdkRémi Verschelde
Windows detect.py: Detect missing WindowsSdkDir
2018-05-08Merge pull request #16573 from StateOff/more_console_debuggingMax Hilbrunner
Local debugging fix & extensions
2018-05-07Local debugger fixes and extensionsBlazej Floch
- Adds q/quit option to console debugging - Adds options (variable_prefix) - Breaks into debugger with Ctrl-C in local debug mode (Unix/Windows) - Added option to list all breakpoints - Fixes add/remove breakpoint bug (invalid path parsing) - Minor cleanup
2018-05-08Merge pull request #18627 from RameshRavone/patch-2Max Hilbrunner
Fix: JAR files signed with the MD5 algorithm as unsigned (godot 3)
2018-05-07Fix: JAR files signed with the MD5 algorithm as unsignedRameshRavone
2018-05-07Resume audio on iOS after phone call or alarmRuslan Mustakov
When a phone call or an alarm triggers on iOS, the application receives an "audio interruption" and it's up to the application to resume playback when the interruption ends. I added handling for audio interruptions same as if the game is focused out and then back in.
2018-05-07Windows detect.py: Detect missing WindowsSdkDirMax Hilbrunner
2018-05-05Merge pull request #18541 from profan/fix/win-sleepMax Hilbrunner
Windows: ensure minimum possible timer resolution for sleep
2018-05-02Merge pull request #17196 from RandomShaper/improve-gui-touchRémi Verschelde
Implement universal translation of touch to mouse (3.1)
2018-05-01Merge pull request #18291 from akien-mga/coverity-uninitialized-scalar-varRémi Verschelde
Fix Coverity reports of uninitialized scalar variable
2018-05-01windows: ensure minimum possible timer resolution for sleepRobin Hübner
2018-04-30Implement universal translation of touch to mousePedro J. Estébanez
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-26Fix _export_begin not being called when exporting to androidIgnacio Etcheverry
2018-04-22Change ".." punctuation for "..." in editor strings (#16507)Hugo Locurcio
2018-04-19Provide error details when in-app purchase failsRuslan Mustakov
2018-04-19Fix Coverity reports of uninitialized scalar variableRémi Verschelde
Fixes most current reports on Coverity Scan of uninitialized scalar variable (CWE-457): https://cwe.mitre.org/data/definitions/457.html These happen most of the time (in our code) when instanciating structs without a constructor (or with an incomplete one), and later returning the instance. This is sometimes intended though, as some parameters are only used in some situations and should not be double-initialized for performance reasons (e.g. `constant` in ShaderLanguage::Token).
2018-04-16Fix Android input source checksRuslan Mustakov
Input source types are not pure bit flags, they are combinations of flags, so != 0 check was incorrect and resulted in crashes later, when trying to obtain the device.