Commit Graph

1130 Commits

Author SHA1 Message Date
Juan Linietsky 356c1381b5
Merge pull request #18644 from xsellier/bugfix/no-stacktract-on-android
Android - Crash log misses file name, function name, line number and details
2018-05-07 12:12:40 -03:00
Xavier Sellier d832a5bfbb Add a stacktrace when there is a script error or an error from godot engine 2018-05-05 15:18:52 -04:00
Xavier Sellier b6a2d5f508 Closing the app might lead to a crash due to an IllegalArgumentException 2018-05-04 23:11:16 -04:00
Rémi Verschelde d156b635af
Merge pull request #18487 from xsellier/bugfix/refactor-payments-manager
Refactor PaymentsManager according to Google's guidelines
2018-05-02 09:08:34 +02:00
Rémi Verschelde 7cb027d071
Merge pull request #18362 from guilhermefelipecgs/support_for_atlas_tex_on_cursor
Add support for atlas texture on set_custom_mouse_cursor
2018-05-01 10:01:25 +02:00
Xavier Sellier 72d81d5903 Refactor PaymentsManager according to Google's guidelines 2018-04-28 12:39:48 -04:00
Xavier Sellier 4fe2b05401 Change "env['ndk_platform']" to "ndk_platform" and add "can_vectorize = True" 2018-04-26 09:29:28 -04:00
Colin Kinloch ff3cb321da Fixed android arm64v8 2018-04-25 20:56:31 -04:00
Pedro J. Estébanez 4cb50673d7 Add support for ARMv8 (64-bit) on Android 2018-04-25 17:49:04 -04:00
Guilherme Felipe d65e95e5d6 Add support for atlas texture on set_custom_mouse_cursor 2018-04-24 18:19:10 -03:00
Guilherme Felipe 6217457b14 [2.1] Fix custom cursor when it's hidden
Port of #18075
2018-04-22 12:05:33 -03:00
Xavier Sellier 692f4250e7 Trying to create a mutex twice 2018-04-16 17:12:40 -04:00
Guilherme Felipe 0988796f3c Remove size restriction for mouse cursor 2018-04-05 15:35:20 -03:00
Rémi Verschelde 1c81775f8a
Merge pull request #17999 from xsellier/bugfix-17987/input-device-management
Prevent a device to be added/deleted more than once on Android
2018-04-05 18:34:03 +02:00
Rémi Verschelde 14a5888a80
Merge pull request #17954 from xsellier/bugfix/null-pointer-exception-android-payment
Prevent NullPointerException when data is null during a Payment
2018-04-05 18:31:14 +02:00
Xavier Sellier fb5a601217 Prevent a device to be added/deleted more than once on Android 2018-04-05 10:15:57 -04:00
Xavier Sellier d87578c3cd Prevent NullPointerException when data is null during a Payment 2018-04-05 09:59:02 -04:00
Xavier Sellier 21d03317d7 Initialize sensors to default values for Android platform 2018-04-05 09:50:22 -04:00
Xavier Sellier 657bf8c1a3 Add check when pausing/unpausing audio OpenSL interface (android) 2018-04-04 14:37:41 -04:00
Xavier Sellier 4d2853fcdc Add clipboard operation for android OS 2018-04-03 13:27:00 -04:00
Rémi Verschelde 60835ce88e X11: Fix -Wc++11-narrowing error with clang
Fixes #17725.
2018-03-24 12:16:32 +01:00
Xavier Sellier 7535698c8a Prevent android to split-screen
Add android:resizeableActivity='false' to the manifest.
2018-03-20 21:35:11 -04:00
Rémi Verschelde 940bab2734
Merge pull request #17646 from volzhs/android-device-info-2.1
Fix getting Android device information (2.1)
2018-03-20 11:28:46 +01:00
volzhs 79f155a42e Fix getting Android device information 2018-03-20 14:18:38 +09:00
Leon Krause 6e549d41eb Fix inverted relative mouse motion in HTML5 export
(cherry picked from commit 640d8cc5d2)
2018-03-18 18:14:03 +01:00
Leon Krause c445ba29aa Fix HTML5 key events 2018-03-18 18:14:03 +01:00
Leon Krause 4e0643a51c Fix HTML5 start-up, remove godotfs.js 2018-03-18 18:13:55 +01:00
Rémi Verschelde b30c46bb9d
Merge pull request #17195 from RandomShaper/touch-to-mouse-x11-2.1
Generate mouse events from touch on X11 (2.1)
2018-03-06 10:14:20 +01:00
Pedro J. Estébanez 5571ada4f5 Generate mouse events from touch on X11
To match behavior on other platforms.
2018-02-26 21:19:57 +01:00
Xavier Sellier 88e779cd5e Improve android java support
- Use Log.d/Log.w instead of System.printf
- Remove commented code
- Cherry-pick: Manual backport of d698814367
2018-02-22 13:36:34 -05:00
Xavier Sellier 0af3f8e053 Backport of clang-format 7cb6e6b723 2018-02-22 13:00:36 -05:00
George Marques 1738f5a600
Fix build for WinRT using VS2017 2018-02-18 20:16:53 -03:00
Marcelo Fernandez 20b821780c Detect javascript platform using EMSCRIPTEN env as well
(cherry picked from commit 33daf4d8bc)
2018-02-18 20:33:56 +01:00
Rémi Verschelde e3bcb8cf4a Silence verbose stderr info message on X11
(cherry picked from commit 94f315df01)
2018-02-18 16:57:14 +01:00
Rémi Verschelde bad7a8a657 X11: Link libgcc statically with use_static_cpp option
We were already linking libstdc++ statically for official binaries,
protecting us against most portability issues. But apparently since
we started using GCC 7 for official builds, we also need to link
libgcc statically for at least 32-bit builds to be portable.

Fixes #16409.

(cherry picked from commit b526088ae2)
2018-02-18 16:56:34 +01:00
Pedro J. Estébanez 04151ac0b4 Improve/fix fullscreen on X11
- Fix fullscreen flag being unconditionally added.
- Fix setup for non-WM-compliants.
- Backport setting the compositor hint (from 3.0).
2018-02-16 21:59:48 +01:00
Rémi Verschelde 6a180a6983
Merge pull request #15565 from RandomShaper/adpod-topmost-2.1
Add new window setting: always-on-top (2.1)
2018-02-14 16:43:20 +01:00
Rémi Verschelde f1891f6c22
Merge pull request #16647 from xsellier/bugfix/android-iap-signal-instead-of-timer
AndroidModule GodotPaymentsV3 - emit signal when connected (2.1)
2018-02-14 08:03:52 +01:00
Xavier Sellier 546b48813f Add signals and a check function for Android service connectivity.
- Add a iap_connect and iap_disconnect events for android platform.
- Add isConnected() function returning true if its connected to android service, false otherwise
2018-02-13 19:03:51 -05:00
Rémi Verschelde 4e46b0b668
Merge pull request #13930 from marcelofg55/center_window_2.1
Added OS::center_window to center the window precisely on desktop platforms
2018-02-14 00:15:07 +01:00
Xavier Sellier fe11a2d23d Bugfix: This should fix the issue with the mouse global position 2018-01-31 23:27:48 -05:00
Pedro J. Estébanez f43981e9a6 Implement always-on-top for MacOS
Courtesy of @bruvzg.
2018-01-30 20:40:12 +01:00
volzhs 082a2f95df
Merge pull request #16125 from volzhs/fix-android-build
Fix Android build
2018-01-28 11:54:52 +09:00
volzhs add0c1aa28 Fix Android build
it's same fix with #15400, #15605 but for 2.1 branch
2018-01-28 09:21:35 +09:00
Rhody Lugo 7b25a33762 add Colemak layout 2018-01-23 03:15:45 -04:00
binbitten edc1761c6e Fix horizontal scroll for windows platform 2018-01-20 22:10:03 +01:00
Juan Linietsky 809c0ba3fa Added middle button doubleclick, fixes #15567
(cherry picked from commit 0f00384c93)
2018-01-16 00:04:06 +01:00
Pedro J. Estébanez 554ffdcde7 Add new window setting: always on top
Implemented for Windows and Linux.
2018-01-05 21:28:56 +01:00
Pedro J. Estébanez a84cb60994 Unify X11 fullscreen setup 2018-01-05 21:28:56 +01:00
George Marques 2fae3e786d
Add option to sign WinRT exports with signtool
Windows-only.
2018-01-04 17:08:52 -02:00
Rémi Verschelde 13d05cbb49
Merge pull request #15278 from volzhs/android-update-build-2.1
Update android build tool to latest [2.1]
2018-01-03 18:06:35 +01:00
volzhs 62475459fa Update android build tool to latest 2018-01-03 17:06:48 +09:00
Rémi Verschelde 3102dc17ee
Merge pull request #13437 from xsellier/bugfix/mouse-cursor-lag
Implement hardware cursor acceleration for Godot Engine 2.1
2018-01-03 08:36:44 +01:00
Rémi Verschelde 2712014744 Update copyright statements to 2018
Happy new year to the wonderful Godot community!
2018-01-02 11:27:24 +01:00
Xavier Sellier 377fdc1e33 Hardware cursor implementation for Godot Engine 2.1
- Remove all references to the variable 'custom_mouse_cursor_hotspot' and 'custom_mouse_cursor' from the project settings.
- Indeed, to implement a custom cursor we need to define a sprite for each 'state' of the cursor. Using those variables in the projects settings would define only the _main_ cursor.
- Cleanup the VirtualServer (Remove references to cursor_set_visible, cursor_set_texture and cursor_set_pos)
- Cleanup the Input (set_mouse_in_window should not be used anymore)
- Update the documentation
- Implement it for windows, X11, Javascript, BB 10, OSx, iOS, server, android
- NOT IMPLEMENTED FOR WINRT (As of today, I'm not able to implement this one, this post might help)
- NOT IMPLEMENTED FOR HAIKU (Support of this platform seems perfunctory)
- Build it for Windows, Android and OSX
2017-12-15 11:37:36 -05:00
Rémi Verschelde dec619296a iOS: Drop obsolete code from never-public modules
(cherry picked from commit 5563f4cc56)
2017-12-11 15:32:53 +01:00
Rémi Verschelde 6a4e7198c5 Style: apply clang-format (5.0.0) to current source 2017-12-11 15:31:49 +01:00
Rémi Verschelde acb7107720 Style: apply clang-format (3.9.1) to current source 2017-12-11 15:18:06 +01:00
Pedro J. Estébanez 088569fe14 Fix no mouse if touch device present in X11
Plus several improvements in this area.

Sadly, grabbing has been disabled until a better solution is found.
2017-12-10 07:15:07 +01:00
Rémi Verschelde 78364d4b07
Merge pull request #14355 from volzhs/ios-delegate
use application:didFinishLaunchingWithOptions: instead of application…
2017-12-07 09:33:25 +01:00
MrCdK 1cda47a7bc Fix windows compilation when using MinGW
(cherry picked from commit 651677f033)
2017-12-07 07:30:22 +01:00
volzhs d25b1cf88a use application:didFinishLaunchingWithOptions: instead of applicationDidFinishLaunching: for iOS 2017-12-07 10:02:19 +09:00
Pedro J. Estébanez 838fd94a70 Remove dead code from Windows build script 2017-12-07 00:00:24 +01:00
Pedro J. Estébanez a6cedd736b Add build param for targeted Windows version 2017-12-07 00:00:24 +01:00
Pedro J. Estébanez cb23cc1ca4 Improve/fix multitouch on Windows
- Fix logic error.
- Track touches to enable defensive handling and releasing on focus out.
- Change comment-out by preprocessor `#if`.
2017-12-07 00:00:24 +01:00
Pedro J. Estébanez 4511241991 Implement multitouch on X11 2017-12-07 00:00:24 +01:00
marcelofg55 129e0f34d0 Added OS::center_window to center the window precisely on desktop platforms 2017-12-03 17:13:26 -03:00
Indah Sylvia 88b6c49e22 Enhanced UWP logo on Export dialog 2017-11-29 19:50:02 +07:00
Rhody Lugo 714e02c0f6 disable caching for targets using helper functions 2017-11-28 16:14:24 -04:00
Rhody Lugo 388249c386 use the same cache for all branches for appveyor 2017-11-28 03:23:51 -04:00
sersoong 320ee1851f Porting 3.0 filessytem_dock's context menu to 2.1 2017-11-19 11:21:36 +08:00
Rhody Lugo 75925198be fix window position computations on macOS 2017-11-14 08:59:50 -04:00
Rémi Verschelde ff69d1fff2
Merge pull request #12886 from rraallvv/osx_android_travis_2.1
travis: caching Android, iOS, macOS (cross-compile) (2.1)
2017-11-13 21:44:45 +01:00
Rhody Lugo f09bbfa372 change matrix and enable caching for Android, iOS and macOS (cross-compile) 2017-11-13 15:13:46 -04:00
Rémi Verschelde aafb06cf9f
Merge pull request #12820 from eska014/2.1-html5-pointer-input
Backport HTML5 pointer-input patches to 2.1
2017-11-12 20:28:35 +01:00
Leon Krause b717d1dc4c Implement HTML5 touch events
(cherry picked from commit 86f5ac3d74)
2017-11-10 20:54:58 +01:00
Leon Krause 9b07e32656 Reimplement HTML5 mouse input without GLUT
Fixes inverted scrolling on Chromium

(cherry picked from commit a99b6b2063)
2017-11-10 20:51:16 +01:00
Rhody Lugo fd10b1cf4c unified headers fix 2017-11-09 09:47:28 -04:00
Rémi Verschelde 73e3947493
Merge pull request #12605 from rraallvv/unified_headers_2.1
add support for Android NDK unified headers (2.1)
2017-11-06 16:07:02 +01:00
Rhody Lugo c0647681d8 add support for Android NDK unified headers 2017-11-06 07:52:47 -04:00
volzhs bc285b2ba4 Prevent to stop music in another background app on iOS 2017-11-06 20:13:36 +09:00
volzhs 50868dfd27 Respect use_lto option for building iPhone template 2017-11-02 17:35:06 +09:00
Matthias Hoelzl fb236045de Make build scripts Scons 3.0/Python3 compatible
- Cherry picked #10662 and fixed merge conflicts.
- Manualy merged the change from #11904.
- Did not merge #12236 since I'm not sure whether the issue
  affects Godot 2.1 and I don't have VS2013 to test.
- Did not merge #11843 since it doesn't seem relevant (the
  code is only needed for creating DONORS.md, etc.).
- Did not merge #10727 and #11752 since they seem to be
  already included in #11742.
- The Windows and Linux builds have been tested with Scons 3.0
  using Python 3.
- OSX and iOS should hopefully work but are not tested since
  I don't have a Mac.
- Builds using SCons 2.5 and Python 2 should not be impacted.
2017-10-24 06:41:32 +02:00
Marcelo Fernandez 5cf2fc3a5f Implemented vsync OS functions for OS X 2017-10-23 12:05:42 -03:00
sersoong 5ed8826dd0 update GKScore init function 2017-10-20 17:44:54 +08:00
Rémi Verschelde 7644f337e0 Merge pull request #12098 from RandomShaper/fix-scons3-android-build-2.1
Fix Android build error with SCons 3.0 (2.1)

[ci skip]
2017-10-14 21:16:14 +02:00
Pedro J. Estébanez f50e5dc594 Fix Android build error with SCons 3.0
Not sure why this happens without having upgraded Python itself, but is needed now.

Not needed for _master_ because there we have b6e1e47e3a that does this and more.

This commit does not address upgrading to Python 3.0. It just makes building for Android work again after upgrading SCons while keeping Python 2.7.
2017-10-14 20:53:00 +02:00
Indah Sylvia 06dd291865 Fixed wrong Virtual-KeyCode(0x12) pair on Windows platform (#12073) 2017-10-14 15:49:21 +07:00
Rémi Verschelde fd8a71397d Merge pull request #11796 from RameshRavone/back_event
Handling BackPress event [Android]
2017-10-12 20:12:00 +02:00
Rémi Verschelde b641a58951 Merge pull request #11847 from RameshRavone/patch-8
flatDir support [Android] (2.1)
2017-10-09 12:34:00 +02:00
Ramesh Ravone 77332861c2
flatDir support [Android] 2017-10-05 09:22:37 +05:30
Ramesh Ravone 2ba23c8ae7
Handling BackPress event [Android] 2017-10-03 11:33:37 +05:30
Marcelo Fernandez 116e735e8b Fix possible crash at exit on iOS 2017-10-02 23:20:06 -03:00
Rémi Verschelde 7213e67f6a Merge pull request #11476 from marcelofg55/export_dmg_21
Ported BastiaanOlij code from master to export to .dmg on OS X, with some improvements
2017-09-26 08:20:28 +02:00
Elliott Sales de Andrade 8d246dfc1d Add support for OpenSSL 1.1.0.
This release hides many struct members which provides easier forward
compatibility but is a break from previous releases. A few small macros
provide compatibility between both 1.1.0 and 1.0.x.

Fixes #8624.

(cherry picked from commit 00c03bdd2b)
2017-09-24 09:19:28 +02:00
Marcelo Fernandez d706ee6f0a Ported BastiaanOlij code from master to export to .dmg on OS X, with some improvements 2017-09-21 17:47:50 -03:00
Marcelo Fernandez b0d5596738 Added OS::move_path_to_trash function, implemented only on OS X for now. 2017-09-21 17:45:32 -03:00
Marcelo Fernandez 253db95cba OS::execute can now read from stderr too when executing with a pipe. 2017-09-21 17:44:53 -03:00
Rémi Verschelde 1391269a78 Merge pull request #10124 from marcelofg55/handle_sigsegv
Added a SIGSEGV handler that dumps the stacktrace to ease reporting
2017-09-21 11:30:40 +02:00
Rémi Verschelde af019d397c Merge pull request #11449 from volzhs/fix-trustmanager
Fix TrustManager for Android
2017-09-21 10:22:24 +02:00