aboutsummaryrefslogtreecommitdiff
path: root/platform
Commit message (Collapse)AuthorAgeFilesLines
* Change ".." punctuation for "..." in editor strings (#16507)Hugo Locurcio2018-06-051-7/+7
| | | | (cherry picked from commit 1c419531a009f48aa074f9b5f93b98d387c33723)
* Javascript: Remove weird logMax Hilbrunner2018-06-011-2/+0
| | | | (cherry picked from commit 0c56e011adf4de59848d8fb801e8741119548543)
* Increase versionCode range 3.0Dmitry Pupinin2018-06-011-1/+1
| | | | (cherry picked from commit d71d968987055473bbd1ab263f7d9386cc6a2614)
* Add back missing method from e10a2e5999bb646b0145f898328e8f01731ca854Hein-Pieter van Braam2018-05-141-0/+1
|
* Implement pull/18665 for 3.0Hein-Pieter van Braam2018-05-131-2/+8
| | | | Windows detect.py: Detect missing WindowsSdkDir
* Fix keyboard focus lock-out with HTML5 canvas in iframeLeon Krause2018-05-132-5/+9
| | | | (cherry picked from commit 9080e96bc81328e658a03e2cd248c06ddbf9f2ec)
* For uwp the ARM architecture needs to be in lower caseHein-Pieter van Braam2018-05-131-2/+2
| | | | (cherry picked from commit 07f590046ad1ac96098989f8c266bfa0cc414f18)
* Fix relative mouse motion when captured in HTML5 platformLeon Krause2018-05-131-1/+1
| | | | (cherry picked from commit d78b10313b78e56a65ef4fdfeef6d85ae8ad5311)
* Fix custom cursor disappearing on osxGuilherme Felipe2018-05-131-5/+8
| | | | (cherry picked from commit 48f9e6a05b928bdd9085827c4f6b341f960be75e)
* Proper focus in/out handling on iOSRuslan Mustakov2018-05-131-12/+9
| | | | | | | | | | | | | | | | | | | | 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. (cherry picked from commit 08a924bcee3b4d128ddcf261a8c2fc915db486fc)
* Resume audio on iOS after phone call or alarmRuslan Mustakov2018-05-132-21/+59
| | | | | | | | | 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. (cherry picked from commit 96301e934d7600975922c5f373a488a532d77aad)
* Merge pull request #18082 from RandomShaper/improve-gui-touch-3.0Hein-Pieter van Braam2018-05-1311-202/+83
|\ | | | | Implement universal translation of touch to mouse (3.0)
| * Implement universal translation of touch to mousePedro J. Estébanez2018-04-3011-202/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Android: Increase targetSdkVersion to 27Rémi Verschelde2018-05-081-1/+1
| | | | | | | | | | | | | | | | 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 (cherry picked from commit a6552819b1d357c0ee1afdbec7485afafa544793)
* | Fix: JAR files signed with the MD5 algorithm as unsignedRameshRavone2018-05-081-2/+2
| | | | | | | | (cherry picked from commit d3182248c4ab29ab20decabe17066018298a8073)
* | Fix _export_begin not being called when exporting to androidIgnacio Etcheverry2018-04-291-0/+2
| | | | | | | | (cherry picked from commit c8884ce3bddfeb2dead4208047edb27f97a7e78d)
* | Improved error checking at EditorExportPlatformPC::export_projectMarcelo Fernandez2018-04-291-4/+6
| | | | | | | | (cherry picked from commit 0876502f7288a6d4e4bfb58f8692db3516bebb7c)
* | Disable Emscripten assertions in release_debug buildsLeon Krause2018-04-291-1/+2
| | | | | | | | | | | | The messages generated by some assertions can be confusing to users. (cherry picked from commit d6c9d8d778954c65d69d1af04a9921d8887dec9f)
* | Fix IPhone and OSX cross compilationFabio Alessandrelli2018-04-292-1/+7
| | | | | | | | (cherry picked from commit e7b9e2f97099bb37fc59dfc00affa04cee18a5d7)
* | Fix Android input source checksRuslan Mustakov2018-04-281-2/+2
| | | | | | | | | | | | | | | | 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. (cherry picked from commit 5dffa506dc3168e96b4a03d1defbf34661cdff05)
* | Fix UpdatePowerInfo method implementation in PowerIphone classIgors Vaitkus2018-04-281-1/+1
| | | | | | | | (cherry picked from commit 06fab24348166e47d010029a3b0bf98b8f82bd32)
* | Fix bug in HTML5 HTTPClient.Fabio Alessandrelli2018-04-281-1/+1
| | | | | | | | | | | | | | The URL parameter already has a slash, adding an extra one results in an invalid resource path (cherry picked from commit b8c73b195fe2a5df407a5ef3423b182a6c19a93c)
* | Add safety checks when handling Android inputRuslan Mustakov2018-04-281-5/+22
| | | | | | | | | | | | | | It is possible that input comes before the engine is fully initialized. This fixes the crashes that ocurred when that happens. (cherry picked from commit 995724b762fd86e46eb9c5e61aa42303f2b48086)
* | Fix engine.js startGame() when loading from directoryLeon Krause2018-04-281-3/+14
| | | | | | | | (cherry picked from commit 3014e48ec5a985b9d143ba27b91e32b933dcfdad)
* | Allow custom path when using engine.js preloadFile() with URLLeon Krause2018-04-281-3/+3
| | | | | | | | (cherry picked from commit d373029382208226a55ddfc028a3261e0dc8279b)
* | Fix engine.js preloadFile() with directoriesLeon Krause2018-04-281-3/+13
| | | | | | | | (cherry picked from commit 6f1bddf4b5e6716f59bcbd9a7587b6d556251ef9)
* | Expose Emscripten libs to engine.js discreetlyLeon Krause2018-04-283-4/+6
| | | | | | | | (cherry picked from commit 63c7fc6358343c3de6cfaa40436063646eb8b7a1)
* | Fix dragging window from non-retina to retina display.bruvzg2018-04-281-0/+1
| | | | | | | | (cherry picked from commit 14597dc2b264c02450dfd7a04314e77d27ea7dc7)
* | Added new audio device functions to set/get the audio deviceMarcelo Fernandez2018-04-141-2/+2
| | | | | | | | (cherry picked from commit ecc1b34cbc2375a57afad822218324d8b88fa721)
* | Explicitly set OpenGL profile to core (X11, Windows).bruvzg2018-04-143-1/+4
| | | | | | | | | | | | Enable GLES2 on Windows. (cherry picked from commit ad67911f1a45370558f968cdc1540f707534c28f)
* | iPhone X support and iOS-related fixesRuslan Mustakov2018-04-146-77/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting from April 2018 Apple no longer accepts apps that do not support iPhone X. For games this mainly means respecting the safe area, unobstructed by notch and virtual home button. UI controls must be placed within the safe area so that users can interact with them. This commit: - Adds OS::get_window_safe_area method that returns unobscured area of the window, where interactive controls should be rendered. - Reorganizes how launch screens are exported - the previous way was incorrect and modern iPhones did not pick up the correct screens and because of that used a non-native resolution to render the game. - Adds launch screen options for iPhone X. - Makes launch screens optional in the export template. If not specified, a white screen will be used. - Adds App Store icon (1024x1024) export option as it now has to be bundled with the app instead of being provided in iTunes Connect. - Fixes crash when launching games in iOS Simulator. It happened because controllerWasConnected callback came before the engine was initialized. Now in such case the controllers will be queued up and registered after initialization is done. - Fixes issue with the virtual keyboard where for some reason autocorrection panel would intersect with the keyboard itself and not allow you to use the top row of the keyboard. This is fixed by disabling autocorrection altogether. Closes #17358. Fixes #17428. Fixes #17331. (cherry picked from commit 1d9a3a9b1c9ef7db26e53c8aeaab731992cffd6e)
* | Implement always-on-top for MacOSPedro J. Estébanez2018-04-142-0/+16
| | | | | | | | | | | | Courtesy of @bruvzg. (cherry picked from commit 2e8c7824c0f2946f6bf33fe0a20eabb779a91763)
* | Add new window setting: always on topPedro J. Estébanez2018-04-144-0/+78
|/ | | | | | Implemented for Windows and Linux. (cherry picked from commit ee2c31d306e9333b520e0668f26807d876905241)
* Fix getting Android device informationvolzhs2018-03-291-2/+8
| | | | | | Fix #17644 (cherry picked from commit 4e378aeeb874b596fa08d079d9e107b2863f1144)
* Prevent android to split-screenXavier Sellier2018-03-291-1/+2
| | | | (cherry picked from commit 61e8f8a86689bcac91382f993b7b0f9803222b68)
* Modify OSX can_export logic to match the logic from ↵Marcelo Fernandez2018-03-281-9/+15
| | | | | | EditorExportPlatformPC::can_export (cherry picked from commit a42dfd7882305e80ba7f7cdacc836de1139d6b50)
* Hack to force macOS window activation for non-bundled app.bruvzg2018-03-281-1/+35
| | | | (cherry picked from commit 506e17ee7075b107b96cc52854b72c9f2bc3014f)
* add restore purchases for iOSJ Andrew Long2018-03-282-0/+15
| | | | (cherry picked from commit da652c1539281c820240489cb15c3387033b2af9)
* SCons: Fix linking system pcre2 on server platformRémi Verschelde2018-03-041-0/+5
| | | | | | Fixes #17245. (cherry picked from commit e619727e999ecd8e6883330f2c6950cd0624de99)
* Fixed Windows ignoring minimized/maximized status set by userMarcelo Fernandez2018-03-011-1/+10
| | | | (cherry picked from commit f8da9550f4946d438dc1a9074d039ea7a446c293)
* Fix server build on FreeBSDFabio Alessandrelli2018-03-013-2/+15
| | | | (cherry picked from commit 8f9914bd94fced7f60dff40e14fe734203d7c5d4)
* Fix various valgrind reported uninitialized variable usesHein-Pieter van Braam2018-03-011-4/+7
| | | | (cherry picked from commit d702d7b335c0c9305e75131770c0ea739b70d813)
* Fix intermittent audio driver crash during startup on AndroidRuslan Mustakov2018-03-011-0/+1
| | | | | | | | | set_pause can be called before the driver is initialized, and there already is a check for that. The problem is that the 'active' field was not initialied in the constructor, which lead to it having an undefined value. (cherry picked from commit c10749d51f2b77eb1b38909d790e7d3895a97364)
* Android: Mark GLES3 as required in the manifestRémi Verschelde2018-02-271-1/+1
| | | | | | Fixes #17076. (cherry picked from commit 7d09e6540afdf69d3610661145d13090a3d9d18a)
* Add missing return statements (iOS and server).bruvzg2018-02-271-0/+2
| | | | (cherry picked from commit e3c2778d7ecf84d362bae74b93572e7775171cad)
* Refactor version macros and fix related bugsRémi Verschelde2018-02-241-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous logic with VERSION_MKSTRING was a bit unwieldy, so there were several places hardcoding their own variant of the version string, potentially with bugs (e.g. forgetting the patch number when defined). The new logic defines: - VERSION_BRANCH, the main 'major.minor' version (e.g. 3.1) - VERSION_NUMBER, which can be 'major.minor' or 'major.minor.patch', depending on whether the latter is defined (e.g. 3.1.4) - VERSION_FULL_CONFIG, which contains the version status (e.g. stable) and the module-specific suffix (e.g. mono) - VERSION_FULL_BUILD, same as above but with build/reference name (e.g. official, custom_build, mageia, etc.) Note: Slight change here, as the previous format had the build name *before* the module-specific suffix; now it's after - VERSION_FULL_NAME, same as before, so VERSION_FULL_BUILD prefixed with "Godot v" for readability Bugs fixed thanks to that: - Export templates version matching now properly takes VERSION_PATCH into account by relying on VERSION_FULL_CONFIG. - ClassDB hash no longer takes the build name into account, but limits itself to VERSION_FULL_CONFIG (build name is cosmetic, not relevant for the API hash). - Docs XML no longer hardcode the VERSION_STATUS, this was annoying. - Small cleanup in Windows .rc file thanks to new macros. (cherry picked from commit 23ebae01dc7e3df9c842ca7d017f7b233837721d)
* server: Add support for statically linking libgcc and libstdc++Rémi Verschelde2018-02-221-0/+5
| | | | (cherry picked from commit be7bfdfac30b3772fde6058d470b81b480f03be7)
* Fix typos with codespellluz.paz2018-02-225-8/+8
| | | | | | | | | | | | | | | | Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt` Whitelist consists of: ``` ang doubleclick lod nd que te unselect ``` (cherry picked from commit 612ab4bbc6f2396f4dcd68c3f142f7dfa2f5f0a5)
* Add dummy audio driver, fix dummy rasterizerK. S. Ernest (iFire) Lee2018-02-211-2/+3
| | | | (cherry picked from commit 4e1923a931a3d849563bbe5d6fe4a52277daf090)
* Fixes to OS_Server and DummyRasterizer to match new signaturesFabio Alessandrelli2018-02-213-2/+13
| | | | (cherry picked from commit 2de10aa4679a2a5612a7d7939dbd8e74a4caa886)