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
volzhs
24f2864e78
Fix TrustManager for Android
2017-09-21 06:23:40 +09:00
Marcelo Fernandez
60cf34b968
Added a crash handler to dump the backtrace on Windows, Linux and OS X
2017-09-19 19:56:24 -03:00
Marcelo Fernandez
b48704c620
Fix x11 exported executables not getting the +x flag
2017-09-16 22:38:32 -03:00
Marcelo
0a1370ed96
Fix possible crash at ~EditorExportPlatformBB10
2017-09-08 21:35:20 -03:00
Rémi Verschelde
a36db90655
BB10: Do not poll devices if export is not configured
...
See #7131 .
2017-09-05 15:19:17 +02:00
Marcelo Fernandez
68dd103f1b
Added new WASAPI driver for Windows
2017-09-03 17:22:05 -03:00
Pedro J. Estébanez
d6d1c55505
Fix pre-Lollipop (21) Android debug
...
Namely, automatically pick debug over Wi-Fi for devices with an older release and debug over USB otherwise.
A message is printed both in editor output window and console (uppercase here) to let the user know about what mechanism is being used and why.
Fixes #10458 .
2017-08-30 20:35:42 +02:00
Pedro J. Estébanez
8d49cdcfeb
Fix parsing of Android API level
...
And renaming the `Device.release` field to `api_level` for correctness.
2017-08-30 20:12:35 +02:00
Rémi Verschelde
891f6c9b63
Merge pull request #10530 from RandomShaper/remove-old-android-setting-2.1
...
Sanitize Android debug (2.1)
2017-08-29 00:10:31 +02:00
Rémi Verschelde
9d598833d2
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:11:45 +02:00
Wilson E. Alvarez
48b85347c6
Free memory when Main::setup returns an error
...
(cherry picked from commit bd257153dc
)
2017-08-27 13:02:15 +02:00
Fabio Alessandrelli
cc9d701658
Allow building fat binaries with osxcross
...
(cherry picked from commit d7f08ead4e
)
2017-08-27 13:00:24 +02:00
Rémi Verschelde
5bcfe43a14
Workaround missing WM_TOUCH on mingw-w64 < 4.0
...
Upstream bug report: https://sourceforge.net/p/mingw-w64/bugs/460/
(cherry picked from commit 2ed87f33cf
)
2017-08-27 12:36:55 +02:00
Rémi Verschelde
a6805f37d3
Buildsystem: Prevent building X11/server with GCC 6+
...
This is due to a Godot bug which is now fixed in the master branch, but would require
too much work for a short-lived branch such as 2.1. Building release binaries with GCC 6+
will trigger segfaults due to UB when dereferencing pointers with Object::cast_to.
In theory this check should also be made for Windows cross-compilation with MinGW,
but I am more concerned about Linux distros shipping broken binaries than adventurous
cross-compilers hitting a wall.
2017-08-27 11:11:35 +02:00
George Marques
40a778a709
WinRT: Remove unneeded include
...
Fix #10642
2017-08-25 19:52:20 -03:00
Pedro J. Estébanez
e42d62ae73
Fix Android remote debug not hitting breakpoints
...
A change in `Main`'s API is needed. Please read the comment in the diff for an explanation.
2017-08-22 17:25:28 +02:00
Pedro J. Estébanez
723e8482c0
Make Android debug over USB the only option
...
'Remote debug over ADB' is removed as that will be always the case.
Closes #10458 .
2017-08-22 17:10:59 +02:00
Marcelo Fernandez
e3394fc437
Fix y axis for set_window_position on OS X
2017-08-21 15:36:55 -03:00
Marcelo Fernandez
e0a243385b
Fixed issues with borderless windows on Windows
2017-08-20 12:22:14 -03:00
Vasiliy Makarov
d37d9aea8e
fix build for osx
2017-08-19 10:47:15 +03:00
Marcelo Fernandez
647c4ae5bf
Add closest_power_of_2 func and implement mix_rate/latency on OS X
2017-08-18 12:10:21 -03:00
Marcelo Fernandez
830d7c1af1
Fix get_screen_* funcs returning old values after resolution changes on Windows
2017-08-16 13:13:31 -03:00
Marcelo Fernandez
fe37afa8df
Implemented borderless window functions on OS X
2017-08-14 09:53:05 -03:00
bruvzg
8edc3991fd
Duplicate error messages to macOS logging system
...
(cherry picked from commit 68bf243461
)
2017-08-13 20:29:46 +02:00
bruvzg
5b76a456da
Fix warp_mouse_pos on macOS
2017-08-05 00:00:05 +03:00
Rémi Verschelde
e87b6d4c63
Merge pull request #9978 from ISylvox/update-gradle-android-for-2.1
...
[2.1] Update Gradle-Android buildtool
2017-08-04 09:45:21 +02:00
Rémi Verschelde
bba0be7967
Merge pull request #9885 from bruvzg/2.1-win-num-enter-fix
...
Fix Numpad Enter key on Windows (2.1)
2017-07-31 22:59:32 +02:00
Rémi Verschelde
c2fd0e65f7
Merge pull request #9986 from marcelofg55/2.1
...
Fix get_screen_* funcs returning old values after resolution changes on OS X
2017-07-31 14:03:15 +02:00
Rémi Verschelde
3a8550675f
X11: Do not force require system OpenSSL to build
2017-07-31 00:14:04 +02:00
Rémi Verschelde
c1f54e1a45
Style: Apply clang-format on all files
...
Thus fixing some invalid changes that had still made it to the 2.1 branch.
2017-07-30 23:00:25 +02:00
Marcelo Fernandez
6eedfe4ecb
Fix get_screen_* funcs returning old values after resolution changes on OS X
2017-07-30 16:58:00 -03:00
bruvzg
ad034962f1
Change display scale when moving the window from monitor to monitor
...
(cherry picked from commit d18922a56e
)
2017-07-30 21:42:17 +02:00
Rémi Verschelde
437cac9f55
Make MinGW test less verbose on non-Bash shells
...
The &> construct seems to be Bash-specific.
Supersedes #9755 .
(cherry picked from commit 9f768cb519
)
2017-07-30 21:36:36 +02:00
Pedro J. Estébanez
7459c43750
Remove ANDROID define
...
Fixes GDNative build error on Android.
It's also discouraged by Google to rely on it. In case someone needs to check, use ``__ANDROID__`` instead, provided by the very same compiler.
(cherry picked from commit 6ea233434a
)
2017-07-30 21:34:59 +02:00
Marcelo Fernandez
4af2afe5b4
Fix fullscreen on X11 for non-resizable windows
...
(cherry picked from commit 11dbca419c
)
2017-07-30 21:09:31 +02:00
ISylvox
f7e4190b19
update gradle-android buildtool for 2.1
2017-07-30 12:08:36 +07:00
Marcelo Fernandez
a6129f0a21
Fix mutex initialisation in OS X Audio Driver
2017-07-28 16:17:46 -03:00
George Marques
ea545859bd
Merge pull request #9902 from brenttaylor/msvc-build-tools-fix
...
Support MSVC (2015) build tools
2017-07-28 10:40:54 -03:00
Rémi Verschelde
0838a1c420
Merge pull request #9922 from RandomShaper/fix-android-debug-2.1
...
Fix Android debug/run (2.1)
2017-07-28 11:15:45 +02:00
Rémi Verschelde
93e06fa1a8
Merge pull request #9812 from bruvzg/2.1
...
Add macOS main menu (2.1)
2017-07-28 11:05:22 +02:00
Rémi Verschelde
45566c61e3
Merge pull request #9836 from bruvzg/2.1-resize-fix
...
Improved macOS window resizing behaviour (2.1)
2017-07-28 11:02:21 +02:00
Pedro J. Estébanez
aea12b56bc
Fix Android debug/run
...
Same as _master_'s 0ae3336a329b1fd14b66bb26707c2461b66e5aa8; namely:
- Prefix all __adb__ commands with device specification to avoid errors when multiple devices connected.
- Include Android release in device data collection.
- Force system user:.
- Ability to enable/disable.
- Apply only if OS release >= 17 (when multiuser was introduced.
- Fix argument passing.
- Rename local variable `port` to `dbg_port` to better match its partner `fs_port`.
- Fix typo in error message.
But adds:
- Get the debug port from the editor settings, where it lives now.
Fixes #8581 .
2017-07-27 18:11:23 +02:00
Brent Taylor
90f853f710
Support MSVC (2015) build tools
2017-07-26 21:45:11 -07:00
bruvzg
673211a692
Fix Numpad Enter key on Windows
2017-07-26 21:39:02 +03:00
bruvzg
c121f8d561
Fix Numpad Enter key on macOS
2017-07-26 16:46:44 +03:00
bruvzg
5c7ba482d0
Improved macOS window resizing behaviour.
...
Add redraw call to resize callback.
2017-07-25 12:11:39 +03:00
Jia Wang
5a5b6dcde0
Workaround to allow pasting unicode characters from X selection.
...
Fixes #2491 .
Fixes #9787 .
2017-07-25 07:27:27 +08:00
bruvzg
9ea472e810
Fix is_window_fullscreen() and set_window_fullscreen() behaviour after window has entered/left full-screen mode via green zoom button.
...
Fix get/set_current_screen & set_window_maximized.
2017-07-24 22:23:25 +03:00
bruvzg
0cd14e5bac
Add macOS main menu
2017-07-24 14:32:07 +03:00
Marcelo Fernandez
077b455b93
Updated OS X audio driver with improvements from 3.0
2017-07-23 13:40:38 -03:00
Marcelo Fernandez
da7b181a39
Fix Right-Click (Ctrl-Click) on OS X
2017-07-22 16:35:07 -03:00
BastiaanOlij
88236c7418
Fix typo in plist export
...
(cherry picked from commit e735963182
)
2017-07-14 22:04:09 +02:00
George Marques
55a3e078fa
WinRT: Fix problem with Cert Kit validation
2017-07-12 01:33:42 -03:00
George Marques
92ac3869d3
WinRT: Fix exporting problems
...
- Replace spaces with %20, since appx don't like it.
- Use .zip extension for custom package templates.
2017-06-26 14:51:21 -03:00
Poommetee Ketson
4a0dc529ce
BuildSystem: generated files have .gen.ext
2017-06-25 20:31:56 +07:00
George Marques
0a9d482482
WinRT: Add Gamepad vibration support
2017-06-24 13:31:36 -03:00
George Marques
fbb4107ec7
WinRT: Fix Gamepad input
...
Fix #9216
2017-06-24 12:22:58 -03:00
ageazrael
fc27e46af4
Used in the macOS HiDPI options window is too small
...
(cherry picked from commit 109ad227d3
)
2017-06-17 16:03:13 -07:00
Andreas Haas
c0747b22c3
X11: Turn warning about not finding cursor theme into verbose output.
...
Failing to get the cursor theme should not cause any issues since we're then using the default one anyway.
So I removed the warning and made it a verbose-only print instead, as people tend to mistake it for a real error..
(pretty much like `iCCP: known incorrect sRGB profile` :P)
(cherry picked from commit d6333066fc
)
2017-06-17 11:55:05 +02:00
Rémi Verschelde
c4a0679776
Merge pull request #8948 from RandomShaper/improve-mobile-builds-2.1
...
Improve/harmonize mobile builds (2.1)
2017-06-17 11:51:17 +02:00
George Marques
7174d706aa
Fix MouseWheel position on Windows
2017-06-15 13:18:58 -03:00
George Marques
b2f8a365f2
Fix cherry-picking issues caused by code updates
2017-06-07 12:59:42 -03:00
George Marques
477c770181
Change winrt build to be less dependent on ANGLE
...
Now it does not try to build if the solution is not found. This way it's
possible to provide a minimal package with includes and libs and make it
build correctly.
Also remove messages from detect.py since it is ran for every platform
target.
2017-06-07 12:50:38 -03:00
George Marques
21c4bff64c
Add Windows Universal export to editor
...
- Use OPENSSL_ENABLED definition to the whole source to detect it
anywhere.
- Add WinRT/UWP template files with manifest and default images.
2017-06-07 11:36:00 -03:00
George Marques
e01fdd8a86
Remove embedded ANGLE headers
...
There's now a dependency on external ANGLE code, those are not needed
anymore.
2017-06-07 11:36:00 -03:00
George Marques
48a06f730f
Implement missing WinRT functions
...
- Fix buildsystem for WinRT/UWP platform.
- Add audio driver and joystick mapping for WinRT.
- Enable thread class for WinRT.
- Refactor MSVC compiler architecture detection to methods.py, so it can
be used by Windows and WinRT.
2017-06-07 11:36:00 -03:00
Pedro J. Estébanez
499ef55cbc
Improve/harmonize mobile builds
2017-05-27 23:26:47 +02:00
Rémi Verschelde
1b99d75d7e
Merge pull request #8934 from volzhs/get-locale
...
Make OS.get_locale() returns same value
2017-05-27 11:27:14 +02:00
Rémi Verschelde
441196a52c
Merge pull request #8940 from RandomShaper/ccflags-iphone-2.1
...
Allow custom CCFLAGS for iPhone builds (2.1)
2017-05-27 00:48:59 +02:00
sanikoyes
b8ae40de72
Fixed audio can not resume if it is interrupted cause by an incoming phone call
...
(cherry picked from commit 7d374b5974
)
2017-05-27 00:42:59 +02:00
Rémi Verschelde
d432ad1e17
Improve documentation of thirdparty code snippets
...
(cherry picked from commit c8aea60324
)
2017-05-26 23:53:14 +02:00
Pedro J. Estébanez
f6c50a6289
Allow custom CCFLAGS for iPhone builds
...
and disable exceptions by default
2017-05-26 22:35:09 +02:00
volzhs
a495feae3e
Make OS.get_locale() returns same value
2017-05-27 03:42:28 +09:00
Ramesh Ravone
22c174bb71
Android: avoiding duplicates in build.gradle
...
(cherry picked from commit f8309f86c2
)
2017-05-26 18:08:59 +02:00
Ramesh Ravone
9028a75452
Android: Support to change minSdkVersion ( #8313 )
...
(cherry picked from commit 93b417fe17
)
2017-05-26 18:08:26 +02:00
Rémi Verschelde
99f65fcb4f
Merge pull request #8922 from volzhs/fix-android-build
...
Fix android build regression by 69c4c4a
2017-05-26 16:00:50 +02:00
volzhs
c6ebb6a40c
Fix android build regression by 69c4c4a
2017-05-26 20:42:36 +09:00
Rémi Verschelde
29c7118f32
Merge pull request #8913 from RandomShaper/ios-alert-2.1
...
Implement OS.alert() for iOS (2.1)
2017-05-26 07:56:24 +02:00
Pedro J. Estébanez
b870ff6940
Implement OS.alert() for iOS
2017-05-25 17:30:36 +02:00
volzhs
d4ef6216d3
Fix android payment logical error
...
getting sku detail runs only if mod != 0 which means querying 20*n will not get sku details.
referenced from https://github.com/googlesamples/android-play-billing/blob/master/TrivialDrive/app/src/main/java/com/example/android/trivialdrivesample/util/IabHelper.java#L1029-L1062
2017-05-19 12:11:59 +09:00
Pedro J. Estébanez
deda04faff
Upgrade Android build tools to the latest
2017-05-16 00:54:54 +02:00
Rémi Verschelde
aa046a85dc
Merge pull request #8740 from pixelpicosean/scrollingWithFactor
...
Implemented scrolling factor for precision trackpads for 2.1
2017-05-15 07:57:05 +02:00
Sean Bohan
ee670f3724
Implemented scrolling factor for smooth trackpad scrolling
...
Working platforms platform: OSX, Windows.
Support for almost all ui elements, including project list.
Ported from 304a1f5b5a
(#7864 ).
Fixes #492 and #3913 .
2017-05-15 06:44:00 +08:00
Fabio Alessandrelli
aa167fa04b
Rename debug/debug_port to network/debug_port.
...
Expose it in editor settings.
2017-05-12 20:01:53 +02:00
Fabio Alessandrelli
e9a7eeaf9c
Fix UDP wait() not returning after first received packet
...
(cherry picked from commit 5c6715a291
)
2017-05-12 20:01:53 +02:00
Fabio Alessandrelli
bd26eacc59
Allow non blocking UDP put_packet in C++.
...
- Add blocking mode option to PacketPeerUDP.
- put_packet returns ERR_UNAVAILABLE when operation would block.
- ENet module uses non-blocking UDP.
(cherry picked from commit 5f681d0b0f
)
2017-05-12 20:01:53 +02:00
Rémi Verschelde
05d83a62c6
Merge pull request #8695 from BastiaanOlij/mfi_support_2.1
...
iPhone MFI gamepad support
2017-05-12 18:16:41 +02:00
Rémi Verschelde
353ed88a54
Merge pull request #8724 from volzhs/android-jni
...
Fix compile error when use "android_add_jni_dir"
2017-05-12 08:24:32 +02:00
Rémi Verschelde
229c277585
Merge pull request #8722 from volzhs/fix-android
...
Fix possible memory leak for Android and update gradle
2017-05-12 08:24:09 +02:00
volzhs
69c4c4a20c
Fix compile error when use "android_add_jni_dir"
2017-05-12 15:07:41 +09:00
volzhs
c7d3aac505
Update to latest gradle
2017-05-12 14:38:23 +09:00
volzhs
a6c74136b5
Fix possible memory leak for Android
...
/godot_dev/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloaderService.java:575: Error: The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices < Android N. Try changing to .getApplicationContext() [WifiManagerLeak]
mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "WifiManagerLeak":
On versions prior to Android N (24), initializing the WifiManager via
Context#getSystemService can cause a memory leak if the context is not the
application context. Change context.getSystemService(...) to
context.getApplicationContext().getSystemService(...).
1 errors, 0 warnings
2017-05-12 14:38:15 +09:00
BastiaanOlij
de9efc2fdf
iPhone MFI gamepad support
2017-05-09 08:57:17 +10:00
Rémi Verschelde
e3cf067845
X11: Abort build if using OpenSSL 1.1.0+
...
Workaround until #8624 is fixed.
(cherry picked from commit 2976801012
)
2017-05-06 19:01:33 +02:00
volzhs
7919ce782b
Fix error or download again if use obb for Android
2017-04-26 03:43:38 +09:00
Rémi Verschelde
ef351971d8
Drop EXEC PATHP?? super verbose info message
...
It seems to give nightmares to Windows users.
(cherry picked from commit dd55950b62
)
2017-04-20 01:55:54 +02:00
Rémi Verschelde
a27876d5ac
Style: Apply clang-format (3.9.1) to Obj-C++ files
2017-04-09 14:03:52 +02:00
Rémi Verschelde
4b561e3e04
Merge pull request #8311 from BastiaanOlij/format_mm_2.1
...
Spaces to tabs and layout adjustments on .mm files
2017-04-08 16:49:51 +02:00
Rémi Verschelde
7f32db5ac9
Revert "8145 - Mouse Position is unknown until first mouse event on X11 & Win"
...
This reverts commit e5d63aaece
.
Same reasoning as #8291 .
2017-04-08 11:28:25 +02:00
BastiaanOlij
33ea9fc4a7
Spaces to tabs and layout adjustments on .mm files
2017-04-08 09:47:13 +10:00
Rémi Verschelde
2491754de7
Style: Fix some badly formatted files
2017-04-08 01:42:41 +02:00
Rémi Verschelde
e9b045d9e5
Add "Godot Engine contributors" copyright line
2017-04-08 00:45:24 +02:00
Rémi Verschelde
f71da5c8c5
Merge pull request #8273 from RandomShaper/fix-android-x86-2.1
...
Fix crash on Android-x86 (2.1)
2017-04-05 22:27:58 +02:00
Pedro J. Estébanez
212fca0c50
Fix crash on Android-x86
2017-04-05 22:16:04 +02:00
Sergey Pusnei
e5d63aaece
8145 - Mouse Position is unknown until first mouse event on X11 & Win
...
- X11 update input->pos on EnterNotify
- X11 & Win call first-time events processing before main initialization
(cherry picked from commit c79e998d1f
)
2017-04-05 08:08:08 +02:00
Ramesh Ravone
1c17e5b38d
Update build.gradle.template
...
Updating project repository,
added jcenter() since Android Studio uses it by default.
https://www.jfrog.com/knowledge-base/why-should-i-use-jcenter-over-maven-central/
(cherry picked from commit 77c81a21d8
)
2017-04-05 08:07:01 +02:00
Rémi Verschelde
b3d1113ae3
Merge pull request #8152 from Hinsbart/input_id_2.1
...
[2.1] Better handling of joypad device IDs.
2017-03-27 08:51:15 +02:00
Andreas Haas
8c06da0d49
Better handling of joypad device IDs.
...
Now InputDefault is responsible for giving out joypad device IDs to the platform, instead of each platform handling this itself.
This makes it possible for c++ modules to add their own "custom" gamepad devices, without the risk of messing up events in case the user also has regular gamepads attached (using the OS code).
For now, it's implemented for the main desktop platforms.
Possible targets for future work: android, uwp, javascript
2017-03-26 00:12:11 +01:00
Rémi Verschelde
31107daa1a
SCons: Add option to toggle warnings (on by default)
...
All the warnings are factored out of the platform-specific files and moved to
SConstruct. Will have to check that it does not introduce regressions on some
platforms/compilers.
2017-03-25 09:24:29 +01:00
Rémi Verschelde
492f6e06c0
Merge pull request #8088 from BastiaanOlij/android_gravity_2.1
...
Android gravity vector Godot 2.1
2017-03-24 22:49:23 +01:00
Rémi Verschelde
fd17d301d0
Merge pull request #8100 from BastiaanOlij/ios_magnetometer_2.1
...
Fixing magnetometer on iOS
2017-03-23 09:57:29 +01:00
Fabio Alessandrelli
15ecdb5f00
Fix buffer size check in UDP socket.
...
We were reserving 12 bytes from the buffer for ip, port, and length, but since
IPv6 introduction we should be reserving 24 (IPv6 are 16 bytes)
(cherry picked from commit 5dc7c920bf
)
2017-03-22 21:11:49 +01:00
Fabio Alessandrelli
994df5df5c
Use default UDP ring buffer size of 65536 for clients
...
We should probably create a specific function for setting the
recv buffer anyway. UDP sockets does not need to bind (listen)
to be able to call recvfrom. This is especially useful for clients
who just call set_send_address and start communicating with a server.
(cherry picked from commit 9336857132
)
2017-03-22 21:07:27 +01:00
Fabio Alessandrelli
7dbccc9a57
Fix bug causing UDP socket to close after the first send if not listening
...
The ring buffer for receiving packets was not resized in constructor
(cherry picked from commit 68dc969f8c
)
2017-03-22 21:05:27 +01:00
Fabio Alessandrelli
9f41c0a356
Avoid deadlock when writing/reading data on a connecting TCP socket
...
TCP status polling is always performed as non blocking.
Trying to put a packet on a connecting socket will fail immediately.
(cherry picked from commit fa0cb7da0e
)
2017-03-22 21:03:26 +01:00
Fabio Alessandrelli
d9525082fe
Remove set_ip_type from network classes (no longer needed)
...
- TCP:
- `listen` bind to wildcard "*" -> dual stack socket
- `listen` bind to address -> socket from address type
- `connect` -> resolve using best protocol (UNSPEC), socket from address type
- UDP:
- `listen` bind to wildcard "*" -> dual stack socket
- `listen` bind to address -> socket from address type
- `put_packet`/`put_var` -> resolve using TYPE_ANY (UNSPEC), socket from address type
(to change socket type you must first call `close` it)
(cherry picked from commit 88a56ba783
)
2017-03-22 21:00:23 +01:00
Fabio Alessandrelli
0b9684a085
Implement UDP listen bind address
...
(cherry picked from commit 2fe4ef6699
)
2017-03-22 20:25:56 +01:00
Fabio Alessandrelli
43d992fc34
Implement TCP Server bind address
...
(cherry picked from commit b2839343ca
)
2017-03-22 20:25:52 +01:00
Fabio Alessandrelli
603105df18
Convert validity checks of IP_Address to is_valid method.
...
(cherry picked from commit 98a7e2b4e0
)
2017-03-22 20:01:41 +01:00
Fabio Alessandrelli
aeffe74a27
Avoid calling close when polling a UDP peer without socket
...
(cherry picked from commit e4b9b37ccf
)
2017-03-22 20:01:13 +01:00
Fabio Alessandrelli
ccf37c4ca2
TCP connect always opens correct socket type
...
TCP client connections does not need to rely on ipv6 dual stack sockets
(cherry picked from commit 55b4f3686d
)
2017-03-22 15:40:31 +01:00
BastiaanOlij
4b7d1d8c15
Fixing magnetometer on iOS
2017-03-21 23:50:53 +11:00
BastiaanOlij
cc6810c030
Android gravity vector Godot 2.1
2017-03-21 22:45:24 +11:00
Andreas Haas
c5c546fb7f
X11: Don't reset mouse cursor theme.
...
On KDE (and possibly others) the "default" cursor theme is actually some system default, not the one you've set in the desktop setting.
This was especially annoying when using a white cursor, as Godot would then reset back to a dark one.
In my case it was also keeping the cursor from changing its shape.
(cherry picked from commit fc84ccc468
)
2017-03-19 00:44:22 +01:00
Ramesh Mani Maran
f2f2369db8
android: adding classpath and gradle plugins
...
(cherry picked from commit 27c7d253aa
)
2017-03-19 00:44:13 +01:00
denis
e3e86567ba
Update mouse position on touch and release events (Android)
...
(cherry picked from commit 55835167a4
)
2017-03-19 00:42:58 +01:00
Rémi Verschelde
f8db8a3faa
Bring that Whole New World to the Old Continent too
...
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6
.
2017-03-19 00:36:26 +01:00
Rémi Verschelde
1b0e2b0c39
Refactoring: rename tools/editor/ to editor/
...
The other subfolders of tools/ had already been moved to either
editor/, misc/ or thirdparty/, so the hiding the editor code that
deep was no longer meaningful.
(Manual redo of 49c065d29c
)
2017-03-18 23:45:45 +01:00
Rémi Verschelde
16b78da941
Style: Various fixes to play nice with clang-format
...
(cherry picked from commit 2a0ddc1e89
)
2017-03-18 23:13:47 +01:00
Rémi Verschelde
2d479aa0c6
Style: Prevent clang-format on JS code
...
(cherry picked from commit 39114178a0
)
2017-03-18 22:52:28 +01:00
Rémi Verschelde
dbf0137576
Style: Fix statements ending with ';;'
...
(cherry picked from commit f44ee891be
)
2017-03-18 21:14:33 +01:00
Rémi Verschelde
9992509b0d
iphone: Drop unused Appirater thirdparty API
...
(cherry picked from commit 481e511082
)
2017-03-18 20:22:23 +01:00
Ramesh Mani Maran
9b26e9c9ac
support for multiple maven url
...
(cherry picked from commit aa7490ffd0
)
2017-03-18 20:21:49 +01:00
Shlomi Fish
cb2cdce6b8
Fix failing build on mageia v6 x64 linux.
...
There was an error about undeclared malloc()+free().
(cherry picked from commit 0ef3d22d98
)
2017-03-18 20:19:57 +01:00
Ignacio Etcheverry
77cb8f058d
Replace misuse of list iteration
...
(cherry picked from commit 0cd309c5c7
)
2017-03-18 20:13:17 +01:00
Hein-Pieter van Braam
dffdf28349
X11 return to cwd at exit
...
During runtime godot calls chdir() several times. This doesn't really
matter normally but when using tools such as gprof the location of the
profiling data is kind of hard to intuit.
With this PR we simply store the current working directory at start and
restore it once we're almost done exiting.
This doesn't use the OS abstractions as when we need to get the current
workdir we haven't yet initialized it (by necessity). This would break
if we tried to build X11 for windows, but since the X11 target is
hardcoded to use the UNIX abstractions I don't think it matters.
(cherry picked from commit d0c2015fe1
)
2017-03-18 20:12:42 +01:00
Brett-Mitchell
616850b3c0
Fix for issue #7766
...
Add initialization for OS_OSX.mouse_mode in OS_OSX::OS_OSX(). mouse_mode now defaults to OS::MOUSE_MODE_VISIBLE.
(cherry picked from commit 6921e11805
)
2017-03-18 20:09:45 +01:00
Saracen
919c1d627f
Fix glitches when sampling relative cursor data in CAPTURED mouse mode on Windows.
...
(cherry picked from commit 523b69771b
)
2017-03-18 20:06:40 +01:00