Rémi Verschelde
19231aa80f
Merge pull request #10106 from BastiaanOlij/ios_fix_buttons
...
iOS copy touch coordinate as is
2017-08-07 14:50:47 +02:00
Rémi Verschelde
6d213909cb
Merge pull request #10105 from eska014/html5-touch-hint
...
Implement OS.has_touchscreen_ui_hint() in HTML5 platform
2017-08-07 14:49:33 +02:00
Rémi Verschelde
4775d07977
Merge pull request #10104 from eska014/canvas-mgmt
...
Improve HTML5 canvas management
2017-08-07 14:49:16 +02:00
Rémi Verschelde
ae88eb5b50
Merge pull request #10099 from bruvzg/3.0-fix-osx-warp_mouse_pos
...
Fix warp_mouse_pos on macOS
2017-08-07 14:47:54 +02:00
Indah Sylvia
5ae78fdf6a
Makes all Godot API's methods Lower Case
2017-08-07 18:24:35 +07:00
Rémi Verschelde
2bb8ab7b89
Merge pull request #10045 from marcelofg55/audioserver_finish
...
Fix double finalisation of audio drivers
2017-08-07 11:11:03 +02:00
George Marques
d9a97aae04
UWP: Add Gamepad vibration support
2017-08-07 00:09:18 -03:00
George Marques
f89f9f0094
UWP: Fix Gamepad removal logic
...
Fix #9209
2017-08-07 00:07:19 -03:00
bruvzg
68bf243461
Duplicate error messages to macOS logging system
2017-08-06 21:55:30 +03:00
Bojidar Marinov
7b7c7c8dc0
Rename KEY_RETURN to KEY_ENTER and KEY_ENTER to KEY_KP_ENTER
...
Closes #7695
2017-08-06 16:26:07 +03:00
BastiaanOlij
18dc9d1d5a
Copy point into mouse event as is
2017-08-05 17:31:29 +10:00
L. Krause
bd48f210a1
Improve HTML5 canvas management
...
- set_window_maximized hides page content
- Fix sporadic full-screen render-size bug in Chromium
- Smoother resizing for maximized canvas
2017-08-05 05:27:58 +02:00
bruvzg
0ed3da8e2a
Fix warp_mouse_pos on macOS
2017-08-04 23:43:32 +03:00
Rémi Verschelde
7ac50b523b
Merge pull request #9976 from ISylvox/update-gradle-android-master
...
[3.0] Update Gradle-Android buildtool
2017-08-04 09:45:19 +02:00
Marcelo Fernandez
1ca107a057
Fix double finalisation of audio drivers
2017-08-02 11:45:19 -03:00
Rémi Verschelde
edd69de1fd
Merge pull request #9838 from RandomShaper/android-arm64
...
Add support for ARMv8 (64-bit) on Android
2017-08-01 22:24:31 +02:00
Rémi Verschelde
878f34d1e1
Merge pull request #9886 from bruvzg/3.0-win-num-enter-fix
...
Fix Numpad Enter key on Windows (3.0)
2017-07-31 22:59:24 +02:00
Rémi Verschelde
76005a8e75
Style: Apply clang-format on all files
...
Thus fixing some invalid changes that had still made it to the master branch.
2017-07-30 22:53:40 +02:00
Marcelo Fernandez
76821bbb47
Fix mutex initialisation in OS X Audio Driver
2017-07-30 16:35:08 -03:00
Rémi Verschelde
263452ee91
Merge pull request #9960 from marcelofg55/master
...
Fix get_screen_* funcs returning old values after resolution changes on OS X
2017-07-30 20:59:04 +02:00
ISylvox
0d8556a7f0
update gradle-android buildtool for master
2017-07-30 11:30:20 +07:00
Marcelo Fernandez
abbf821ddf
Fix get_screen_* funcs returning old values after resolution changes on OS X
2017-07-28 18:08:57 -03:00
bruvzg
d18922a56e
Change display scale when moving the window from monitor to monitor
2017-07-28 20:17:19 +03:00
Rémi Verschelde
d9b4969c18
Merge pull request #9921 from RandomShaper/fix-android-debug
...
Fix Android debug/run
2017-07-28 11:15:40 +02:00
Rémi Verschelde
a7b35edf7b
Merge pull request #9874 from bruvzg/3.0-osx-menu
...
Add macOS main menu (3.0)
2017-07-28 11:05:05 +02:00
Rémi Verschelde
5caf9d0d08
Merge pull request #9876 from bruvzg/3.0-resize-fix
...
Improved macOS window resizing behaviour (3.0)
2017-07-28 11:02:28 +02:00
L. Krause
0c693595d6
Implement touch-screen check in HTML5 platform
2017-07-28 05:39:25 +02:00
Pedro J. Estébanez
c8d1457898
Fix Android debug/run
...
- 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.
2017-07-27 17:32:39 +02:00
Karroffel
135c2112ad
added an optional parameter to OS symbol lookup
...
When looking up a symbol from a library, previously an error was
shown when the symbol did not exist. That caused confusion when the
lookup was completely optional.
This adds a new parameter to that method so that those errors can
be handled manually if needed.
2017-07-27 11:13:21 +02:00
bruvzg
3220fee6b2
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-27 10:05:33 +03:00
bruvzg
f98a203377
Add macOS main menu
2017-07-27 10:05:29 +03:00
Rémi Verschelde
411f09a512
Merge pull request #9887 from StraToN/power-fix-x11
...
Fix power management on x11 platform and removes explicit NULL pointer dereference
2017-07-27 08:53:27 +02:00
Rémi Verschelde
6645c7cc18
Merge pull request #9872 from bruvzg/3.0-num-enter-fix
...
Remove duplicate keycode constant for Numpad Enter key (3.0)
2017-07-27 08:52:52 +02:00
Julian Murgia
71dcb7fcc4
Fixes power management on x11 platform and removes explicit NULL pointer dereference.
2017-07-26 23:29:51 +02:00
bruvzg
66d3022516
Fix Numpad Enter key on Windows
2017-07-26 21:35:54 +03:00
bruvzg
1c1565d0f9
Improved macOS window resizing behaviour.
2017-07-26 16:29:48 +03:00
bruvzg
7de7ca8ae4
Remove duplicate keycode constant for Numpad Enter key.
2017-07-26 14:43:02 +03:00
BastiaanOlij
20502d9180
Added features for image formats
2017-07-26 21:01:48 +10:00
Rémi Verschelde
f55211ae0d
Merge pull request #9823 from BastiaanOlij/ios_fix_framebuffer_order
...
Fixed setting our system_fbo framebuffer
2017-07-26 07:51:20 +02:00
Rémi Verschelde
9f768cb519
Make MinGW test less verbose on non-Bash shells
...
The &> construct seems to be Bash-specific.
Supersedes #9755 .
2017-07-25 20:44:44 +02:00
Pedro J. Estébanez
f78299c81b
Add support for ARMv8 (64-bit) on Android
2017-07-25 12:28:46 +02:00
Rémi Verschelde
7cbe12725e
Merge pull request #9825 from RandomShaper/rename-android-define
...
Remove ANDROID define
2017-07-25 11:35:08 +02:00
Pedro J. Estébanez
6ea233434a
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.
2017-07-25 11:08:52 +02:00
Jia Wang
2f5b7f8777
Workaround to allow pasting unicode characters from X selection.
...
Fixes #2491 .
Fixes #9787 .
2017-07-25 08:00:48 +08:00
BastiaanOlij
3bfdc583cb
Fixed setting our system_fbo framebuffer
2017-07-25 08:29:48 +10:00
Marcelo Fernandez
2c27501c3f
Fix Right-Click (Ctrl-Click) on OS X
2017-07-23 12:45:59 -03:00
Rémi Verschelde
38c471bef6
Merge pull request #9765 from Noshyaar/pr-clang
...
Clang-formatting *.cpp and *.h (some files excluded)
2017-07-23 13:16:48 +02:00
Rémi Verschelde
401f1098f6
Merge pull request #9770 from eska014/html5-focus
...
Implement input focus behavior in HTML5
2017-07-23 13:13:09 +02:00
Rémi Verschelde
e5aa8546ec
Merge pull request #9713 from marcelofg55/master
...
Fix for possible crash in OS X audio init.
2017-07-23 13:05:49 +02:00
Juan Linietsky
772485cdb3
Several changes to better run in mobile.
2017-07-22 14:08:17 -03:00
L. Krause
ca28c068c0
Implement input focus behavior in HTML5
...
- Key and mouse events are only consumed if canvas is focused
- NOTIFICATION_WM_MOUSE_ENTER, _MOUSE_EXIT, _FOCUS_IN and _FOCUS_OUT are
emitted
2017-07-22 17:25:15 +02:00
Poommetee Ketson
c7c65ca6ba
Clang-formatting *.cpp and *.h (some files excluded)
2017-07-22 18:14:08 +07:00
Juan Linietsky
25678b1876
-Renamed GlobalConfig to ProjectSettings, makes more sense.
...
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
Ruslan Mustakov
fbb27a0c43
Fix android export templates build
...
This commit fixes errors occurring during Android export template
builds.
This required modification in third-party library (libpng) to compile
with NEON. Most likely a similar patch will be applied by them and we
could then replace the modified version.
2017-07-20 01:58:47 +07:00
Marcelo Fernandez
bbc207675f
Fix for possible crash in OS X audio init.
2017-07-19 11:05:51 -03:00
geequlim
5a2500f580
Fix errors with global config names no more sorrys please
2017-07-19 09:25:50 +08:00
Juan Linietsky
bbada82f80
-Reorganized all properties of project settings (Sorry, Again).
...
(Lot's of bloat accumulated, so it was time for clean up.)
-Made EditorSettings and ProjectSettings search more useful (search in sections too)
2017-07-17 22:18:58 -03:00
Rémi Verschelde
1c1d43ef21
Merge pull request #9668 from marcelofg55/master
...
Reinit audio device when the system default device changes on OS X
2017-07-17 22:29:17 +02:00
Rémi Verschelde
80b2a47022
Merge pull request #9669 from eska014/html5-implicit-cache
...
Fix zipping HTML5 templates when using SCons' implicit cache
2017-07-17 12:04:18 +02:00
Marcelo Fernandez
764f607611
Reinit audio device when the system default device changes on OS X
2017-07-16 23:35:23 -03:00
L. Krause
69e0dee983
Fix zipping HTML5 templates when using implicit cache
2017-07-17 03:53:31 +02:00
Rémi Verschelde
9a502d3c17
Merge pull request #9619 from marcelofg55/master
...
Fix fullscreen on X11 for non-resizable windows
2017-07-13 20:31:33 +02:00
Marcelo Fernandez
11dbca419c
Fix fullscreen on X11 for non-resizable windows
2017-07-13 13:08:38 -03:00
George Marques
53026c069d
Bring back the UWP exporter
2017-07-12 16:31:48 -03:00
George Marques
f55fff3528
UWP: Fix problem with Cert Kit validation
2017-07-12 01:24:07 -03:00
geequlim
7358766ff6
IME window follow the input cursor.
...
Abstruct set_ime_position to OS class.
Update ime position for LineEdit and TextEdit.
2017-07-11 18:36:20 +08:00
Marcelo Fernandez
8bd002edc1
Fixed issues with borderless windows on Windows
2017-07-09 21:48:22 -03:00
Poommetee Ketson
2fd204c35e
Refactor 'treshold' to 'threshold'
2017-07-08 22:24:56 +07:00
BastiaanOlij
ae544b227e
Only execute chmod exporting iOS when on Mac OS X
2017-07-08 21:32:02 +10:00
Rémi Verschelde
79992a4a72
Merge pull request #9515 from marcelofg55/master
...
Implemented borderless window functions on Linux.
2017-07-08 11:02:29 +02:00
Rémi Verschelde
0023e8d33a
Merge pull request #9512 from BastiaanOlij/osx_export_fix_typo
...
Fix typo in plist export for OSX export
2017-07-08 11:01:19 +02:00
Marcelo Fernandez
c3563b266f
Implemented borderless window functions on Linux.
2017-07-05 12:19:24 -03:00
BastiaanOlij
e735963182
Fix typo in plist export
2017-07-06 00:14:05 +10:00
BastiaanOlij
ef447c2d84
iPhone exporter
2017-07-06 00:01:21 +10:00
Rémi Verschelde
5a48b428fd
Merge pull request #9476 from marcelofg55/master
...
Implemented borderless fullscreen code on OSX.
2017-07-05 10:51:55 +02:00
Rémi Verschelde
a2586a2119
Merge pull request #9396 from sowfelicity/x11-ime-echo
...
Workaround for IME and echo events on Linux (fixes #29 #7106 #9381 ):
2017-07-03 23:48:57 +02:00
Rémi Verschelde
5c1995ef49
Merge pull request #9468 from BastiaanOlij/osx_export_dmg
...
On OSX export to DMG and optionally code sign the app bundle
2017-07-03 23:25:43 +02:00
Marcelo Fernandez
a9c5895c16
Implemented borderless fullscreen code on OSX.
2017-07-02 23:40:44 -03:00
BastiaanOlij
7ddf3d6cc4
On OSX export to DMG and optionally code sign the app bundle
2017-07-02 21:23:33 +10:00
Rémi Verschelde
e91a267a7c
Buildsystem: Improve detect.py readability and fix issues
...
Tried to organize the configure(env) calls in sections, using the same order
for all platforms whenever possible.
Apart from cosmetic changes, the following issues were fixed:
- Android: cleanup linkage, remove GLESv1_CM and GLESv2
- iPhone: Remove obsolete "ios_gles22_override" option
- OSX:
* Fix bits detection (default to 64) and remove obsolete "force_64_bits" option
(closes #9449 )
* Make "fat" bits argument explicit
- Server: sync with X11
- Windows: clean up old DirectX 9 stuff
- X11:
* Do not require system OpenSSL for building (closes #9443 )
* Fix typo'ed use_leak_sanitizer option
* Fix .llvm suffix overriding custom extra_suffix
2017-07-01 08:20:51 +02:00
Jia Wang
098a888ec0
Workaround for IME and echo events on Linux:
...
Request detectable auto-repeat (Require XKB extension) to support
echo events and IME at the same time. Fixes #29 , #7106 and #9381 .
2017-06-29 19:26:06 +08:00
Rémi Verschelde
82298e989a
Merge pull request #9416 from marcelofg55/master
...
Implemented borderless window code for OSX.
2017-06-28 07:51:52 +02:00
Marcelo Fernandez
fd7976ddd7
Implemented borderless window code for OSX.
2017-06-27 16:57:28 -03:00
L. Krause
a2fd89bbe2
Hide HTML5 native-run icon without runnable preset
2017-06-27 21:06:43 +02:00
L. Krause
92367968e7
Use custom native-run icons for Android and HTML5
2017-06-27 21:06:26 +02:00
Juan Linietsky
e79e135841
Revert "Workaround for IME on Linux."
2017-06-25 20:09:16 -03:00
Rémi Verschelde
87fd71244b
Merge pull request #9334 from Noshyaar/pr-genh
...
BuildSystem: generated files have .gen.extension
2017-06-25 11:08:36 +02:00
Poommetee Ketson
e3998528e0
BuildSystem: generated files have .gen.extension
2017-06-25 07:55:01 +07:00
Jia Wang
41029eb1f0
Workaround for IME on Linux( fixes #29 #7106 ):
...
Workaround for supporting input method frameworks like SCIM,
IBus, Fcitx, etc.
The locale is set when the application starts.
Workaround for input when the input context within the specified
input method is not available.
2017-06-25 08:17:56 +08:00
Juan Linietsky
683f50bef4
Merge pull request #9312 from BastiaanOlij/osx_export
...
Osx export
2017-06-23 23:22:51 -03:00
BastiaanOlij
5b44f092f9
Reimplement export module for OSX
2017-06-23 00:01:55 +10:00
Hugo Locurcio
9444e8056a
Make the Windows icon file smaller
...
This results in slightly more compact Godot Windows binaries.
2017-06-20 14:38:50 +02:00
L. Krause
6f17d41bcf
Update HTML5 platform for new InputEvents
2017-06-19 15:43:46 +02:00
Rémi Verschelde
0a339f14a8
Merge pull request #9198 from vnen/fix-wheel-pos
...
Fix MouseWheel position on Windows
2017-06-15 18:45:22 +02:00
George Marques
dd2b7ef747
Fix MouseWheel position on Windows
2017-06-15 13:34:57 -03:00
Rémi Verschelde
5077d2d28d
Merge pull request #9140 from ageazrael/bug-fix
...
Fixed middle mouse button can't bounce in macOS
2017-06-15 16:22:07 +02:00
Rémi Verschelde
dc6642bc13
Merge pull request #9102 from Faless/debugger_listen_show_error
...
Editor now shows error when debug port is in use
2017-06-15 00:08:44 +02:00
ageazrael
109ad227d3
Used in the macOS HiDPI options window is too small
2017-06-13 09:54:55 +08:00
ageazrael
b3accab62d
Fixed middle mouse button can't bounce in macOS
2017-06-13 09:27:49 +08:00
George Marques
43bcb73b22
UWP: InputEvent: Renamed "pos" property to "position"
...
To comply with the changes from #9031 .
2017-06-12 11:49:28 -03:00
Fabio Alessandrelli
b76275ab12
Fix network/debug/remote_port
editor setting not working properly
2017-06-10 23:34:35 +02:00
Juan Linietsky
bcc435094d
Restired multithread support in OSX and Windows, should stop the crashes.
2017-06-10 10:15:33 -03:00
Juan Linietsky
612ab8fcdb
-Restored multithread capability to VisualServer
...
-Restored resource previews!
2017-06-09 00:24:18 -03:00
Rémi Verschelde
71c7dcab65
Merge pull request #8949 from RandomShaper/improve-mobile-builds
...
Improve/harmonize mobile builds
2017-06-08 07:41:06 +02:00
Rémi Verschelde
e2d70166fe
Merge pull request #9082 from themindoverall/pr-fix-android-build
...
Fix InputEvent-related Android build issues
2017-06-07 07:58:50 +02:00
Chris Serino
bdffd2ecd0
Fix input event related android build issues
2017-06-06 22:30:04 -05:00
toger5
328d0e2b4e
osx release right button event fixed
...
RIGHT_MOUSE_BUTTON was not removed from the button mask (instead it was added...)
fixes #9079
2017-06-06 19:40:06 -07:00
alexholly
a3c90b0293
renamed all Rect2.pos to Rect2.position
2017-06-04 02:09:17 +02:00
Andreas Haas
9bc5348961
InputEvent: Renamed "pos" property to "position"
...
Make the naming consistent with other classes.
2017-06-03 11:26:39 +02:00
Andreas Haas
d6333066fc
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)
2017-05-29 20:41:18 +02:00
Timo Schwarzer
1e29d92dfa
Use new icons everywhere
...
Closes #8879
2017-05-28 20:18:30 +02:00
Pedro J. Estébanez
854b3cc158
Improve/harmonize mobile builds
2017-05-27 23:26:59 +02:00
Rémi Verschelde
96be464952
Merge pull request #8935 from volzhs/get-locale-master
...
Make OS.get_locale() returns same value
2017-05-27 11:27:39 +02:00
Pedro J. Estébanez
2a52e2b2f5
Allow custom CCFLAGS for iPhone builds
...
plus disable exceptions by default
2017-05-27 00:31:00 +02:00
volzhs
0627445863
Make OS.get_locale() returns same value
2017-05-27 03:50:22 +09:00
Rémi Verschelde
8d92065164
Merge pull request #8916 from sanikoyes/Pr-fix_audio_stoped_iOS
...
Fix audio can't resume in iOS platform
2017-05-26 16:01:30 +02:00
Rémi Verschelde
755c07af19
Merge pull request #8923 from volzhs/fix-android-build-master
...
Fix android build regression by be7ced4
2017-05-26 16:00:53 +02:00
volzhs
781ca6773c
Fix android build regression by be7ced4
2017-05-26 20:44:45 +09:00
sanikoyes
7d374b5974
Fixed audio can not resume if it is interrupted cause by an incoming phone call
2017-05-26 15:29:00 +08:00
Rémi Verschelde
d197cd4705
Merge pull request #8912 from RandomShaper/ios-alert
...
Implement OS.alert() for iOS
2017-05-26 07:56:22 +02:00
Pedro J. Estébanez
50f152575d
Implement OS.alert() for iOS
2017-05-25 17:33:40 +02:00
Rémi Verschelde
aadeaae0b9
Merge pull request #8878 from BastiaanOlij/ios_make_arm64_default
...
Make arm64 the default option and set minimum to iOS 9
2017-05-25 08:38:07 +02:00
George Marques
40613221a4
Fix UWP compilation issues
...
Also fix VS2017 compilation problems.
2017-05-23 14:06:24 -03:00
BastiaanOlij
80fc513663
Make arm64 the default option and set minimum to iOS 9
2017-05-23 23:58:38 +10:00
Rémi Verschelde
016ee0edb5
Merge pull request #8877 from BastiaanOlij/fix_ios_godot3
...
More fixes for iOS Godot 3.0
2017-05-23 15:26:13 +02:00
BastiaanOlij
3768a3b2c5
More fixes for iOS Godot 3.0
...
- nicely exit if initialisation fails
- fix a few issues around new event handling
- use 16bit single channel framebuffer as 32bit is not supported on iOS
2017-05-23 22:38:36 +10:00
BastiaanOlij
8b01f9d28f
Fix a few issues compiling windows and using VS2015 and earlier
2017-05-23 21:54:19 +10:00
toger5
72876ef10b
added modifier key to scroll event
2017-05-22 03:46:54 -07:00
toger5
b90df858c1
fixed osx input event
2017-05-22 01:17:57 -07:00
Juan Linietsky
5b3709d309
Removal of InputEvent as built-in Variant type..
...
this might cause bugs I haven't found yet..
2017-05-20 17:05:38 -03:00
Rémi Verschelde
161bc31c53
Merge pull request #8841 from BastiaanOlij/osx_cleanup_old_classes
...
Removing unused files and old GLFW comments on OSX
2017-05-20 09:51:12 +02:00
Rémi Verschelde
e80d2b8dfb
Merge pull request #8824 from volzhs/android-payment-master
...
Fix android payment logical error
2017-05-20 09:49:18 +02:00
BastiaanOlij
87b4776cbf
Removing rasterizer from iphone
2017-05-20 10:17:47 +10:00
BastiaanOlij
63db9a4bee
Doing a little bit of cleanup
2017-05-20 09:30:31 +10:00
volzhs
209f61b6d4
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:20:51 +09:00
Rémi Verschelde
683befbf84
Merge pull request #8756 from BastiaanOlij/mfi_support_3.0
...
MFI gamepad support for iPhone
2017-05-18 12:54:43 +02:00
Rémi Verschelde
519df0d34d
Use new Godot icon consistently everywhere
2017-05-17 19:53:59 +02:00
BastiaanOlij
1f4f784e7d
MFI gamepad support for iPhone
2017-05-17 22:38:49 +10:00
Juan Linietsky
98a3296702
Removal of Image from Variant, converted to a Resource.
2017-05-17 07:37:45 -03:00
Pedro J. Estébanez
78f44831f6
Upgrade Android build tools to the latest
2017-05-16 00:57:50 +02:00
Rémi Verschelde
ed6baffc72
Merge pull request #8725 from volzhs/android-jni-master
...
Fix compile error when use "android_add_jni_dir"
2017-05-12 08:24:40 +02:00
Rémi Verschelde
413e68fced
Merge pull request #8723 from volzhs/fix-android-master
...
Fix possible memory leak for Android and update gradle
2017-05-12 08:24:22 +02:00
volzhs
be7ced4826
Fix compile error when use "android_add_jni_dir"
2017-05-12 15:10:59 +09:00
volzhs
8be9b98b8e
Update to latest gradle
2017-05-12 14:44:47 +09:00
volzhs
9d33f51066
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:44:37 +09:00
Rémi Verschelde
32afcbc482
Put brave old bb10 platform to a well-deserved rest
...
Add some 🔥 to appease @reduz. Fixes #8692 .
2017-05-08 22:22:20 +02:00
toger5
304a1f5b5a
Implemented scrolling factor for smooth trackpad scrolling
...
Working platforms platform: OSX, Windows.
Support for almost all ui elements, including project list.
2017-05-07 14:23:56 +02:00
Rémi Verschelde
c8aea60324
Improve documentation of thirdparty code snippets
2017-05-07 11:42:37 +02:00
Rémi Verschelde
2976801012
X11: Abort build if using OpenSSL 1.1.0+
...
Workaround until #8624 is fixed.
2017-05-06 19:01:10 +02:00
Rémi Verschelde
a853b0a2f7
Merge pull request #8656 from Faless/fix_udp_wait
...
Fix UDP::wait() deadlock
2017-05-05 23:05:52 +02:00
Rémi Verschelde
120ce92e32
Merge pull request #8625 from eska014/html5-cursorshape
...
HTML5: Cursor style control
2017-05-05 22:52:48 +02:00
Fabio Alessandrelli
5c6715a291
Fix UDP wait() not returning after first received packet
2017-05-05 17:41:11 +02:00
L. Krause
0811335fd5
Implement cursor style control in HTML5 platform
2017-05-02 13:31:27 +02:00
Rémi Verschelde
9bdc498f90
Merge pull request #8574 from eska014/html5-noglut
...
Remove GLUT usage in HTML5 platform
2017-05-02 11:30:01 +02:00
Rémi Verschelde
64c31a3a9f
Merge pull request #8576 from eska014/html5-mousemodes
...
HTML5: Implement mouse lock/capture and hiding
2017-05-02 07:34:52 +02:00
L. Krause
101c542b77
Implement mouse capture and hiding in HTML5 export
...
MOUSE_MODE_CONFINED cannot be implemented.
2017-05-02 04:01:34 +02:00
Rémi Verschelde
4dd291cecb
Merge pull request #8586 from vnen/uwp-3
...
Fix compilation for UWP
2017-05-01 22:48:01 +02:00
George Marques
f7bd21a022
Fix compilation for UWP
2017-04-29 20:15:59 -03:00
Rémi Verschelde
de7eba887e
Merge pull request #8572 from akien-mga/thirdparty
...
Moving more thirdparty stuff (minizip, some single-file external libs) to the thirdparty directory
2017-04-29 22:57:49 +02:00
L. Krause
abe09919bf
Fix HTML5 key events
...
Regression from 86f5ac3
2017-04-29 04:42:50 +02:00
L. Krause
847bd33fdf
Remove GLUT usage in HTML5 platform
2017-04-28 21:54:44 +02:00
Rémi Verschelde
2398eb6ed4
Move core thirdparty files to thirdparty/{minizip,misc}
2017-04-28 21:19:23 +02:00
Rémi Verschelde
4759be3c4b
Merge pull request #8547 from eska014/html5-pointer-input
...
HTML5: Add (multi-)touch events, fix inverted scrolling
2017-04-26 19:28:17 +02:00
L. Krause
86f5ac3d74
Implement HTML5 touch events
2017-04-26 16:30:22 +02:00
volzhs
889ce29fc2
Fix error or download again if use obb for Android
2017-04-26 04:06:45 +09:00
L. Krause
a99b6b2063
Reimplement HTML5 mouse input without GLUT
...
Fixes inverted scrolling on Chromium
2017-04-25 14:48:46 +02:00
Rémi Verschelde
515f92d03b
Fix property warnings and hide some debug prints
...
"ALL IS GOOD" was a lie.
In particular, removes verbose "path not recognized" false positive.
The actual logic is to (somewhat naively) check all ResourceFormatLoaders
and to pick the first good match, so no need to warn about the formats
that do not match the type hint.
2017-04-23 11:17:32 +02:00
Rémi Verschelde
dd55950b62
Drop EXEC PATHP?? super verbose info message
...
It seems to give nightmares to Windows users.
2017-04-17 23:39:04 +02:00
Andreas Haas
246dfc65ca
Fix crash on exit.
...
First it crashed in the thread that checks for android devices, then in the audio driver.
2017-04-10 19:51:07 +02:00
Rémi Verschelde
61a27601f7
Merge pull request #8341 from RameshRavone/master
...
Android: avoiding duplicates in build.gradle
2017-04-10 08:58:15 +02:00
Sergey Pusnei
8589ca3903
Rename [gs]et_pos to [gs]et_position for Controls
...
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
2017-04-10 08:27:34 +02:00
Ramesh Ravone
f8309f86c2
Android: avoiding duplicates in build.gradle
2017-04-10 08:34:40 +05:30
Ramesh Ravone
93b417fe17
Android: Support to change minSdkVersion ( #8313 )
2017-04-09 23:35:34 +02:00
Juan Linietsky
fccf2816d4
-Fix eternal black screen on Windows
...
-Disabled warnings on windows, need to properly set up warnings
2017-04-09 17:59:17 -03:00
Rémi Verschelde
3fd10ff6f0
Style: Apply clang-format (3.9.1) to Obj-C++ files
2017-04-09 14:44:52 +02:00
BastiaanOlij
5c2ddb299b
Formatting of mm files
2017-04-09 21:22:40 +10:00
Rémi Verschelde
df61dc4b2b
Add "Godot Engine contributors" copyright line
2017-04-08 00:11:42 +02:00
Juan Linietsky
74808ac4d9
New particle system, mostly working, some small features missing.
2017-04-06 23:49:27 -03:00
Juan Linietsky
ce948ed63b
Revert "8145 - Mouse Position is unknown until first mouse event on X11"
2017-04-06 13:08:42 -03:00
Rémi Verschelde
64ebc3672e
Merge pull request #8274 from RandomShaper/fix-android-x86
...
Fix crash on Android-x86
2017-04-05 22:27:48 +02:00
Pedro J. Estébanez
2443946307
Fix crash on Android-x86
2017-04-05 22:18:16 +02:00
Rémi Verschelde
46bc14e66f
Merge pull request #8246 from GodotNativeTools/dlscript-module
...
DLScript module
2017-04-04 00:25:03 +02:00
eska
9dbd6db63b
Reenable Windows Desktop export
2017-04-03 19:52:11 +02:00
Karroffel
fd55308786
added dlscript module
...
This module was written by bojidar-bg and me, with the help of ClikCode and touilleMan.
This adds a module to Godot that enables the use of dynamic libraries as a source for scripts.
That also allows third party libraries to be linked to Godot more easily and without creating modules.
For a readme see https://github.com/GodotNativeTools/godot_headers/blob/master/README.md
2017-04-03 17:20:11 +02:00
Rémi Verschelde
aab6687523
Merge pull request #8180 from sergey-push/8145-Mouse_Position_is_unknown_until_first_mouse_event
...
8145 - Mouse Position is unknown until first mouse event on X11
2017-03-30 10:34:30 +02:00
Karroffel
2281942fb3
Added methods for opening dynamic libraries to OS
2017-03-29 23:05:15 +02:00
Juan Linietsky
000e873008
Merge pull request #8191 from eska014/webgl2-export
...
WebGL 2 export per WebAssembly or asm.js
2017-03-29 15:21:52 +02:00
eska
7df7e9cc8b
WebGL 2 export per WebAssembly or asm.js
2017-03-29 13:27:43 +02:00
Sergey Pusnei
c79e998d1f
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
2017-03-28 19:18:40 -04:00
Rémi Verschelde
9d28a5e7d9
Merge pull request #8159 from Hinsbart/last_id
...
Input: Remove usage of platform dependent event IDs.
2017-03-27 08:52:58 +02:00
Rémi Verschelde
fbebd32b5f
Merge pull request #8147 from RameshRavone/patch-1
...
Update build.gradle.template for jcenter
2017-03-27 08:50:47 +02:00
Rémi Verschelde
d8f32637be
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.
(cherry picked from commit 31107daa1a
)
2017-03-26 21:58:37 +02:00
Andreas Haas
c0b6756875
Input: Remove usage of platform dependent event IDs.
...
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...
2017-03-26 15:59:32 +02:00
Ramesh Ravone
77c81a21d8
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/
2017-03-25 17:41:20 +05:30
BastiaanOlij
a0b0dff6fd
Fixing magnetometer on iOS
...
(cherry picked from commit 4b7d1d8c15
)
2017-03-24 23:18:42 +01:00
Rémi Verschelde
5cad9147f9
Merge pull request #8133 from Hinsbart/joy_constants
...
Input: Refactor JOY_* constants.
2017-03-24 22:53:16 +01:00
Rémi Verschelde
6674c556ae
Merge pull request #8128 from volzhs/fix-android-app-name
...
Fix wrong app name for Android export
2017-03-24 22:52:25 +01:00
Rémi Verschelde
296ece2c6a
Merge pull request #7985 from Faless/enet_godot_sock_squash
...
Update ENet to use Godot sockets.
2017-03-24 22:47:18 +01:00
Rémi Verschelde
1ed8caa1bb
i-patch for Pirate language
...
Credits to jo_ for the joke and hcorion for finding the typo:
<hcorion> Hi all, I was busy translating godot to Pirate, and I noticed a
spelling error, on line 1035 in platform/uwp/export/export.cpp it mis-spells
certificate as certficate missing the extra i
<jo_> hcorion: Nice catch.
<jo_> If you make a PR, please call it 'i-patch for Pirate."
2017-03-24 21:59:32 +01:00
Rémi Verschelde
debeee56f7
Fix typos in source code using codespell
...
From https://github.com/lucasdemarchi/codespell
2017-03-24 21:45:31 +01:00
Andreas Haas
0d8f5660f6
Input: Refactor JOY_* constants.
...
**Breaking change**
Removed the `JOY_SNES_*` and `JOY_SEGA_*` constants. Imho there's no reason for a modern game engine to provide button aliases for decades-old hardware.
Also renamed `JOY_ANALOG_{0,1}_{X,Y}` to `JOY_ANALOG_{L,R}{X,Y}` and removed `JOY_ANALOG_2_*`.
2017-03-24 18:04:36 +01:00
volzhs
f912bcd943
Fix wrong name for Android export
2017-03-24 15:26:55 +09:00
Fabio Alessandrelli
5f681d0b0f
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.
2017-03-24 02:30:11 +01:00
Juan Linietsky
efaeebab4d
Several fixes to Android exporter and port.
...
Android seems to be working again!
2017-03-23 20:14:12 -03:00
Juan Linietsky
c37fad650f
Export working (for linux at least)
2017-03-21 19:34:26 -03:00
Juan Linietsky
b5a06cecff
Export template management dialog.
...
Missing download (need to discuss this!)
2017-03-21 08:42:06 -03:00
Rémi Verschelde
b1f22fe756
Merge pull request #8066 from Hinsbart/fix_x11_cursor
...
X11: Don't reset mouse cursor theme.
2017-03-18 14:52:44 +01:00
Andreas Haas
fc84ccc468
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.
2017-03-18 12:13:14 +01:00
Rémi Verschelde
f3dbd9e792
Merge pull request #8042 from eska014/webgl2
...
Some WebGL 2 and build fixes/clean-up
2017-03-18 10:50:04 +01:00
Rémi Verschelde
60bdc37056
Merge pull request #8035 from DenisComtesse/android-screentouch-fix
...
Update mouse position on touch and release events (Android)
2017-03-18 10:48:26 +01:00
Ramesh Mani Maran
27c7d253aa
android: adding classpath and gradle plugins
2017-03-18 10:27:30 +01:00
Rémi Verschelde
111d3e8063
Merge pull request #7953 from RameshRavone/patch-1
...
support for multiple maven url
2017-03-18 10:25:49 +01:00
eska
12dd86bba0
Some WebGL 2 and build fixes/clean-up
2017-03-17 15:56:48 +01:00
denis
55835167a4
Update mouse position on touch and release events (Android)
2017-03-15 17:41:21 +01:00
Juan Linietsky
af020160c6
more html5 fixes
2017-03-14 10:53:46 -03:00
eska
1abf478eb9
Fix web export build
2017-03-10 05:09:54 +01:00
Rémi Verschelde
5dbf1809c6
A Whole New World (clang-format edition)
...
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
2017-03-05 16:44:50 +01:00
Rémi Verschelde
e1c1d7d1d7
Add a bunch of missing Godot headers in own files
2017-03-05 15:47:28 +01:00
Rémi Verschelde
481e511082
iphone: Drop unused Appirater thirdparty API
2017-03-05 14:53:56 +01:00
Rémi Verschelde
49c065d29c
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.
2017-03-05 14:21:25 +01:00
Ramesh Mani Maran
aa7490ffd0
support for multiple maven url
2017-03-05 15:46:55 +05:30
Julian Murgia
94103c0c02
Add API to access battery power state
...
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
2017-03-04 18:04:29 +01:00
volzhs
4866ea828a
Fix handling input for Android
2017-03-04 00:15:26 +09:00
Shlomi Fish
0ef3d22d98
Fix failing build on mageia v6 x64 linux.
...
There was an error about undeclared malloc()+free().
2017-02-27 21:24:46 +02:00
Rémi Verschelde
34a0aa6900
Merge pull request #7862 from Hinsbart/joypad_connections
...
Better handling of joypad device IDs.
2017-02-26 21:30:24 +01:00
Andreas Haas
a175ac7032
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-02-26 21:01:31 +01:00
Rémi Verschelde
7902444f38
Merge pull request #7834 from hpvb/x11-return-to-cwd-at-exit
...
X11 return to cwd at exit
2017-02-26 20:25:09 +01:00
Rémi Verschelde
2d3dd6f6ee
Merge pull request #7854 from neikeq/pr-execute-iter
...
Replace misuse of list iteration
2017-02-26 20:23:10 +01:00
Rémi Verschelde
1ec8b9fb7d
Merge pull request #7851 from shlomif/fix-some-compilation-warnings
...
Get rid of some compilation warnings.
2017-02-26 20:22:48 +01:00
Rémi Verschelde
ca805744fb
Merge pull request #7848 from hpvb/fix-7839
...
Windows: Close audiodriver sooner on exit
2017-02-26 20:18:49 +01:00
Rémi Verschelde
a23e062c28
Merge pull request #7880 from bojidar-bg/fix-iphone-builds
...
Really fix iphone builds
2017-02-24 14:16:15 +01:00
Bojidar Marinov
cd52209d1b
Really fix iphone builds
2017-02-23 20:20:55 +02:00
Rémi Verschelde
46b2267498
Merge pull request #7879 from bojidar-bg/fix-iphone-builds
...
Complete the globals.h -> global_config.h conversion
2017-02-23 16:51:28 +01:00
Bojidar Marinov
53921faa91
Complete the globals.h -> global_config.h conversion
2017-02-23 17:47:25 +02:00
Juan Linietsky
ffcd954211
Fixes to webgl/opengl es 3.0 for compatibility with webgl2.0, still does not work though
2017-02-22 19:14:21 -03:00
eska
6e1828c958
Fix WebAssembly builds on Windows
2017-02-21 23:21:28 +01:00
Shlomi Fish
0a2c387d5c
Fix some compilation warnings.
...
Redone the commit based on the input in
https://github.com/godotengine/godot/pull/7851 . Not all warnings were
fixed but it's a start.
2017-02-21 11:59:19 +02:00
Juan Linietsky
de0045cf1b
-renamed globals.h to global_config.cpp (this seems to have caused a few modified files)
...
-.pck and .zip exporting redone, seems to be working..
2017-02-21 00:06:30 -03:00
Ignacio Etcheverry
0cd309c5c7
Replace misuse of list iteration
2017-02-20 19:53:14 +01:00
eska
6e2bf31e5a
Automatically zip web export templates
...
Also fix web builds on Windows and clean up
2017-02-20 06:59:19 +01:00
eska
335fdea581
Fix parallel asm.js/WebAssembly builds
2017-02-20 03:44:37 +01:00
Juan Linietsky
f6950956bd
Editor Export Settings Dialog is completed!! Now on to make some exporters..
2017-02-19 23:21:35 -03:00
Hein-Pieter van Braam
04e51859f0
Windows: Close audiodriver sooner on exit
...
In #7839 I see the same error that was fixed in #7833 occuring on the
Windows platform. This moves the audio driver closing to the same place
in OS_Windows::finalize() as it is in OS_X11::finalize()
This fixes #7839
2017-02-19 20:45:17 +01:00
Hein-Pieter van Braam
d0c2015fe1
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.
2017-02-18 12:41:26 +01:00
Hein-Pieter van Braam
f70afbe129
X11: Move audio driver finalize to the start of cleanup
...
The audio driver cleanup needs to happen at the start of finish
otherwise a race still seems to exist with the destruction of the
audioserver. I think that destroying the X resoures before has something
to do with it.
2017-02-17 17:59:06 +01:00
Hein-Pieter van Braam
a7fcdad16d
X11: Finalize audiodrivers on exit
...
The audiodrivers loaded by OS_X11 are not destroyed before the
audioserver is. This causes a segfault on exit.
The code is taken from os_windows.cpp which did have the cleanup code.
2017-02-17 10:41:41 +01:00
Rémi Verschelde
e837b25f55
Fix missing semicolon in previous commit
2017-02-13 23:46:25 +01:00
Brett-Mitchell
6921e11805
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.
2017-02-13 12:55:26 -05:00
Hein-Pieter van Braam
411ee71b4d
Rename the _MD macro to D_METHOD
...
This new name also makes its purpose a little clearer
This is a step towards fixing #56
2017-02-13 12:50:02 +01:00
Rémi Verschelde
70b9aa379d
Merge pull request #7581 from Faless/v6_wild_bind
...
TCP/UDP listen bind to address and bugfixes
2017-02-12 23:31:40 +01:00
Rémi Verschelde
3cab47adba
Merge pull request #7782 from SaracenOne/windows_relative_cursor_fix
...
Fix relative cursor data in CAPTURED mouse mode on Windows.
2017-02-12 23:26:19 +01:00
Rémi Verschelde
43d947f54b
Merge pull request #7771 from Limb/winaudiodriver
...
Close out audio drivers when exiting on Windows.
2017-02-12 23:24:09 +01:00
Rémi Verschelde
dc5f978f28
Merge pull request #7770 from Limb/removedx9
...
Removed DX9 Rasterizer in windows
2017-02-12 23:23:34 +01:00
Saracen
523b69771b
Fix glitches when sampling relative cursor data in CAPTURED mouse mode on Windows.
2017-02-11 03:54:36 +00:00
Kenneth Lorthioir
bd893f346a
Close out audio drivers when exiting.
...
Prevents a crash when closing the project manager.
2017-02-09 10:40:13 -05:00
Kenneth Lorthioir
091202589c
Removed DX9 Rasterizer in windows.
...
This doesn't seem to be needed anymore and the code to free the unused
rasterizer was throwing a memory violation since it was getting set to a
value somehow.
2017-02-09 10:27:40 -05:00
Kenneth Lorthioir
6961ed21bb
Fixed compilation issues with Visual Studio
2017-02-08 18:14:52 -05:00
Rémi Verschelde
251e014b59
Merge pull request #7578 from baekdahl/master
...
x11: don't wait for window to be mapped
2017-02-02 08:21:05 +01:00
Rémi Verschelde
40e4c1f6ab
Merge pull request #7689 from eska014/webgl2
...
Enable WebGL2 in web export, start fixing build
2017-02-02 08:18:42 +01:00
Rémi Verschelde
869d710198
Merge pull request #7683 from marcelofg55/master
...
Fix issues with set_window_resizable on x11
2017-02-02 08:17:14 +01:00
Rémi Verschelde
44d386ee80
Merge pull request #7645 from tagcup/x11_optimization_flags_v2
...
Use -Ofast on x11. Also introduced use_lto option.
2017-02-02 08:06:06 +01:00
eska
e06edc67c0
Enable WebGL2 in web export, start fixing build
...
Will not yet compile
2017-02-01 10:21:04 +01:00
marcelofg55
474e3ac055
Fix issues with set_window_resizable on x11
2017-01-30 13:25:48 -03:00
Ferenc Arn
7a85d25218
Use -Ofast on x11. Also introduced use_lto option.
...
debug_release doesn't turn off optimizations for release target now. Ensure that sanitizer options apply to both C and C++ files.
Built-in optimization/debug flags are prepended such that user-specified flags can override them.
Based on and around the discussion in PR #5194 .
2017-01-26 19:32:27 -06:00
Juan Linietsky
96de0141cc
Removed import/export system, will start new one from scratch.
2017-01-25 21:57:08 -03:00
Ilija Boshkov
1005a56e5a
Added focus tracking in X11 and Windows classes, added new confined mouse mode ( #7162 )
2017-01-25 19:21:41 +01:00
Pedro J. Estébanez
b84f58262c
Fix resources for Android modules not being merged
...
Fixes #7421
2017-01-25 00:21:53 +01:00
Fabio Alessandrelli
5dc7c920bf
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)
2017-01-23 20:18:23 +01:00
Fabio Alessandrelli
9336857132
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.
2017-01-23 20:18:23 +01:00
Fabio Alessandrelli
68dc969f8c
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
2017-01-23 20:18:23 +01:00
Fabio Alessandrelli
fa0cb7da0e
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.
2017-01-23 20:18:23 +01:00
Fabio Alessandrelli
88a56ba783
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)
2017-01-23 20:18:22 +01:00
Fabio Alessandrelli
2fe4ef6699
Implement UDP listen bind address
2017-01-23 20:18:18 +01:00
Fabio Alessandrelli
b2839343ca
Implement TCP Server bind address
2017-01-23 20:15:20 +01:00
Fabio Alessandrelli
98a7e2b4e0
Convert validity checks of IP_Address to is_valid method.
2017-01-23 20:15:20 +01:00
Fabio Alessandrelli
e4b9b37ccf
Avoid calling close when polling a UDP peer without socket
2017-01-23 20:15:20 +01:00
Juan Linietsky
0aa7242624
WIP new AudioServer, with buses, effects, etc.
2017-01-21 19:01:00 -03:00
Jesper Bækdahl
8f7a3884fd
x11: don't wait for window to be mapped
2017-01-19 09:38:40 +01:00
Rémi Verschelde
0a9aee6b1d
Merge pull request #7558 from Faless/fix_windows_output
...
Fix gibberish output for windows/mingw.
2017-01-16 19:28:03 +01:00
Rémi Verschelde
7b059965e8
Adapt platforms to AudioServer refactoring
...
Fixes compilation on Windows and likely other platforms (at least
as far as AudioServer changes were concerned), though they were
not tested.
2017-01-16 19:19:45 +01:00
Fabio Alessandrelli
3df934acad
Fix gibberish output for windows/mingw.
...
%ls should be used instead of %s or %S to speficy narrow/wide charstring
in wprintf fwprintf
Fixes #6252
2017-01-16 18:56:28 +01:00
Jerome67000
8c19a6cb85
#7215 try to fix adb bad targeting user on device
2017-01-16 17:53:12 +01:00
Fabio Alessandrelli
c356ec5e8b
Fix bug in windows TCP poll function
...
Bug introduced when implementing TCP disconnection detection.
(too much yank-paste).
Fixes #7545
2017-01-16 15:50:20 +01:00
BastiaanOlij
3a02df7739
Working on compile issues for iOS
2017-01-16 23:14:13 +11:00
BastiaanOlij
cef0ae5d5d
Fix compile errors related to audio on OSX
2017-01-16 20:32:44 +11:00
Rémi Verschelde
2a0ddc1e89
Style: Various fixes to play nice with clang-format
2017-01-16 08:49:52 +01:00
Rémi Verschelde
39114178a0
Style: Prevent clang-format on JS code
2017-01-16 08:49:52 +01:00
Rémi Verschelde
f44ee891be
Style: Fix statements ending with ';;'
2017-01-16 08:49:52 +01:00
Juan Linietsky
b400c69cd4
Oops! Audio engine has vanished :D
2017-01-15 16:07:51 -03:00
Rémi Verschelde
07f65184f3
Merge pull request #7519 from eska014/web-presentation
...
Improve Web export presentation
2017-01-15 00:30:52 +01:00
Rémi Verschelde
a992d3f74f
Merge pull request #7510 from Faless/tcp_connect
...
TCP connect always opens the correct socket type
2017-01-15 00:26:46 +01:00
Rémi Verschelde
d4eb8ec884
Merge pull request #7127 from BastiaanOlij/ios_meters
...
Core motion implementation for iPhone (Accelerometer/Gyro/Magnetometer support)
2017-01-15 00:08:46 +01:00
Rémi Verschelde
479790a841
StreamPeerWinsock: Fix changed declarations
...
Bug introduced in dcb95ec147
.
2017-01-14 16:23:01 +01:00
Juan Linietsky
dcb95ec147
removed duplicated functions in class hierarchy that were bound more than once
...
added a check to detect this case in the future
2017-01-14 11:10:42 -03:00
eska
1f7d4c4d0e
Improve usability and style in web export presentation
...
- 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
2017-01-14 14:53:40 +01:00
Rémi Verschelde
93ab45b6b5
Style: Fix whole-line commented code
...
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.
2017-01-14 14:52:23 +01:00
Juan Linietsky
da4170540c
Fixed dir access return value, changed it to Error like all other funcs
2017-01-14 09:17:15 -03:00
Juan Linietsky
6c512b88c2
UDP.set_send_address to UDP.set_dest_address
2017-01-14 00:54:21 -03:00
Juan Linietsky
d9d77291bc
rename String.extension() -> String.get_extension() / String.basename() -> String.get_basename()
2017-01-14 00:51:09 -03:00
Juan Linietsky
a97551902e
rename Input.get_mouse_speed() to Input.get_last_mouse_speed()
2017-01-13 19:24:28 -03:00
Fabio Alessandrelli
55b4f3686d
TCP connect always opens correct socket type
...
TCP client connections does not need to rely on ipv6 dual stack sockets
2017-01-13 19:02:39 +01:00
Fabio Alessandrelli
65483d57bf
Improvements to scons defined WINVER/_WIN32_WINNT
2017-01-12 17:13:19 +01:00
BastiaanOlij
5e4dcb3b7f
Added support for getting gravity vector from iOS
2017-01-12 16:37:27 +11:00
BastiaanOlij
efa9ded5f9
Added logic for adjusting to screen orientation and removed final negative z
2017-01-12 16:34:42 +11:00
BastiaanOlij
ee98e06952
Added gravity vector back into the accelerometer data and flipped Z on the gyro
2017-01-12 16:34:42 +11:00
BastiaanOlij
51c60f7a49
Fixed up release motionManager and negate z for gyro and magnetometer
2017-01-12 16:34:42 +11:00
BastiaanOlij
5c13bae8df
Replacing deprecated UIAccelerometer with Core Motion
2017-01-12 16:34:42 +11:00
eska
68422c5dd6
Relink web build when HTML shell changes
...
Emscripten injects its loader script when linking, so force relinking
whenever the HTML shell changes.
Also remove useless FULL_ES2 flag, which should be a linker flag, but
would impact performance too much.
2017-01-12 01:05:07 +01:00
Juan Linietsky
b7d69c2444
Added a BACK notification besides QUIT, so they go in separate channels.
2017-01-11 16:42:31 -03:00
Juan Linietsky
bc26f90581
Type renames:
...
Matrix32 -> Transform2D
Matrix3 -> Basis
AABB -> Rect3
RawArray -> PoolByteArray
IntArray -> PoolIntArray
FloatArray -> PoolFloatArray
Vector2Array -> PoolVector2Array
Vector3Array -> PoolVector3Array
ColorArray -> PoolColorArray
2017-01-11 00:52:51 -03:00
Rémi Verschelde
6eeb994a7b
Merge pull request #7493 from neikeq/pr-mingw-bits
...
Detect bits when building with MinGW
2017-01-10 17:17:10 +01:00
Ignacio Etcheverry
460f030b73
Detect bits when building with MinGW
2017-01-10 17:08:31 +01:00
Rémi Verschelde
4163be67a1
OSX: Revert back to kHIDUsage_GD_Joystick
...
Bug introduced in 547a57777b
.
2017-01-09 10:05:50 +01:00
Andreas Haas
d963fa9a01
More fixes to Joypad renaming.
...
Windows did not compile anymore because DI8DEVTYPE_JOYPAD obviously isn't defined in the directx headers ^^
I also did the same renaming as in #7473 for the windows platform and reverted the changes in the gamepad
mappings.
2017-01-08 23:52:49 +01:00
Andreas Haas
4a6428aaee
Rename "joypad_linux" class to "JoypadLinux"
...
Named this class in GodotCase, so it fits with the rest of the codebase.
2017-01-08 22:22:00 +01:00
Rémi Verschelde
5bfa4227b3
Finish replacement of joystick by joypad
...
Some parts were forgotten in 547a577
.
2017-01-08 21:33:37 +01:00
Juan Linietsky
547a57777b
renamed joystick to joypad everywhere around source code!
2017-01-08 17:06:33 -03:00
Rémi Verschelde
6323779596
Windows: Define _WIN32_WINRT to 0x0600 (Vista)
...
Passed as a compiler define to be sure it is always define before windows.h
is loaded. This means that Godot officially requires Vista API or later, it will
not work on Windows XP or earlier.
Also fix a bogus check for Windows 7 API.
2017-01-08 20:41:26 +01:00
Rémi Verschelde
d945c4e58e
x11: Improve logic for cross-dependencies between freetype, zlib and libpng
...
Fixes #7373 .
2017-01-08 17:17:05 +01:00
Juan Linietsky
263d5fcff8
Added missing readers writers lock to windows, should compile and run again..
2017-01-08 11:13:12 -03:00
Juan Linietsky
aa60e02cf6
fixes compilation in windows?
2017-01-08 10:20:23 -03:00
Juan Linietsky
2ab83e1abb
Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector
2017-01-07 18:26:38 -03:00
Rémi Verschelde
2a38a5eaa8
Remove bundled glew, obsoleted by glad
...
Also make Haiku load the glad header for GLES3 too,
though I haven't test it.
2017-01-06 22:56:51 +01:00
Rémi Verschelde
dc0d08cc93
Move glad files to thirdparty dir
2017-01-06 22:42:19 +01:00
Juan Linietsky
53ce643e52
-Changed memory functions, Memory::alloc_static*, simplified them, made them aligned to 16
...
-Changed Vector<> template to fit this.
2017-01-06 10:15:44 -03:00
Juan Linietsky
99ceddd11e
Editor settings categories are now tidy and beautiful!
2017-01-05 19:41:36 -03:00
Juan Linietsky
495d059a74
Merge branch 'master' of https://github.com/godotengine/godot
2017-01-05 09:18:03 -03:00
Juan Linietsky
0f7af4ea51
-Changed most project settings in the engine, so they have major and minor 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
2017-01-05 09:16:00 -03:00
BastiaanOlij
5e717ed8a3
Enabled code that requests an OpenGL 3 context.
2017-01-05 00:05:34 +11:00
BastiaanOlij
55d425807f
First set of changes to fix compilation errors and initialise the gles3 renderer for Mac OS X. Still broken at this point.
2017-01-04 23:34:02 +11:00
Juan Linietsky
118eed485e
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
...
All usages of "type" to refer to classes were renamed to "class"
ClassDB has been exposed to GDScript.
OBJ_TYPE() macro is now GDCLASS()
2017-01-02 23:03:46 -03:00
Rémi Verschelde
3f3f5a5359
Merge remote-tracking branch 'origin/gles3' into gles3-on-master
...
Various merge conflicts have been fixed manually and some mistakes
might have been made - time will tell :)
2017-01-02 21:52:26 +01:00
Rémi Verschelde
0b2771bd65
Merge pull request #7271 from Faless/ipv6_cleanup
...
Fixes and improvementes for IPv6 implementation.
2017-01-02 15:51:45 +01:00
Rémi Verschelde
c7bc44d5ad
Welcome in 2017, dear changelog reader!
...
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer
with state-of-the-art rendering techniques tuned to work as low as middle
end handheld devices - without compromising with the possibilities given
for higher end desktop games of course. Great times ahead for the Godot
community and the gamers that will play our games!
2017-01-01 22:03:33 +01:00
reduz
289bc881aa
now it really works on window for real
2016-12-25 08:05:23 -03:00
reduz
0d4abf2aa3
fixed a horrible bug on Windows AMD, scenes saved until now in this branch
...
are no longer valid :(
2016-12-24 16:23:30 -03:00
Juan Linietsky
37f558cd7b
Some BRDF fixes
2016-12-21 14:22:17 -03:00
reduz
72b844c349
Godot works on Windows again..
2016-12-21 02:29:58 -03:00
Gustav Lund
2495e8a941
fix for crash when no ALSA or Pulse installed on linux
2016-12-12 10:47:41 +01:00
Fabio Alessandrelli
1aff508dd9
IP_Address now handle IPv4 and IPv6 transparently
...
IP_Address changes:
- Converts to and from String transparently while handling IPv4 as IPv6
mapped (::ffff:[IP]) address internally.
- Completely remove AddrType enum.
- Setting/Getting of ip array is now only possible through dedicated functions
(ie. set_ipv4, get_ipv4, set_ipv6, get_ipv6)
- Add function to know if the address is a valid IPv4 (for IP implementation and enet)
2016-12-09 18:24:59 +01:00
Fabio Alessandrelli
c18c5013f8
Migrate int.IP_TYPE_ constants to IP.TYPE_
2016-12-09 18:24:59 +01:00
Fabio Alessandrelli
4d90a4fcd5
Move V6ONLY flag selection inside helpers
2016-12-09 18:24:59 +01:00
Fabio Alessandrelli
9200da58e4
Automatically map IPv4 address to IPv6 when needed
2016-12-09 18:24:59 +01:00
Fabio Alessandrelli
95bdd97768
Use an instance variable for ip_type in raw sockets
...
PacketPeerUDP/StreamPeerTCP/TCP_Server now uses an instance variable
to store the selected ip_type (IPv4/IPv6/ANY, where ANY = dual stack).
All calls to resolve addresses, sending/receving data, connecting/listening
will use that socket type.
2016-12-09 18:24:59 +01:00
Fabio Alessandrelli
4f07b595a1
Properly handle tcp connection failure
2016-12-09 18:24:58 +01:00
Rémi Verschelde
752f630f4e
Merge pull request #7219 from eska014/separate-asmjs
...
Fix browser lockups in web export startup
2016-12-02 08:57:33 +01:00
Rémi Verschelde
fb932d0f50
Merge pull request #7217 from eska014/js-os
...
Work on asm.js and WebAssembly platforms
2016-12-02 08:56:53 +01:00
eska
290d79f26c
Emit asm.js code into a dedicated file for asm.js export
...
This helps prevent browser lockups during start-up at the cost of having
to distribute an extra file.
2016-11-30 23:47:38 +01:00
eska
3e1b437315
Add window features in web export
...
- Add 'window' (canvas) resize, maximize and fullscreen
- Implement get_screen_size
- Fix fullscreen resolution
2016-11-30 22:04:35 +01:00
eska
30e9ea5a82
Fix some mouse bugs in WebAssembly/asm.js
...
- Emit mouse wheel release events
- Set button masks, fixes #5092
2016-11-30 22:02:32 +01:00
eska
a6ae3204fb
OS additions and fixes for WebAssembly/asm.js
...
- Implement alert, shell_open, set_window_title
- Add locale lookup, fixes #2477
- Print without color control sequences
- Move get_executable_path implementation to OS_JavaScript
2016-11-30 22:01:55 +01:00
Rémi Verschelde
ab637bc812
Merge pull request #7201 from volzhs/android-alert
...
Add alert window on Android
2016-11-28 15:32:40 +01:00
Rémi Verschelde
f28ff8a208
Fix console output for MinGW compilers
...
Reworked patch from @jay3d (#7116 ).
2016-11-28 15:12:54 +01:00
volzhs
9a20068ab7
Add alert window on Android
2016-11-28 10:20:57 +09:00
BastiaanOlij
da5651fbb9
Set minimum version to 10.9 building OSX
2016-11-25 00:55:13 +11:00
Rémi Verschelde
f18470c199
Revert "X11: Fix maximized boot splash"
...
This reverts commit 8d3efe2b7d
.
It introduced crashes for some users when trying to capture
the XConfigureNotify event.
2016-11-23 07:53:31 +01:00
Juan Linietsky
9d635f0629
Migrated from GLES to GLAD, fixes many issues.
2016-11-22 20:51:56 -03:00
Rémi Verschelde
d5a9102a88
Merge pull request #7125 from Hinsbart/x11_maximize
...
X11: Fix maximized boot splash
2016-11-21 11:54:49 +01:00
Rémi Verschelde
4965ddfaa1
png: Allow building shared freetype with bundled libpng
...
This was the behaviour when building Godot 2.1, which allows to build against
Ubuntu 12.04 and its freetype that links old libpng12, while still bundling
libpng16.
2016-11-19 14:09:01 +01:00
Rémi Verschelde
c32766a482
Revert "libpng: Fix erroneously linking against libpng12 on old distros"
...
This reverts commits 5fa1bb331a
and ec4be71fad
.
Looks like Debian/Ubuntu are not even shipping libpng16 nowadays in their
stable releases, we'll have to go back to statically linking our own
libpng16 to wait for them to stop being 5 years behind everybody.
2016-11-19 13:39:03 +01:00
Rémi Verschelde
ec4be71fad
libpng: Same fix as previous commit for server platform
2016-11-19 13:25:17 +01:00
Rémi Verschelde
5fa1bb331a
libpng: Fix erroneously linking against libpng12 on old distros
...
This bit us for 2.1.1 binaries built on Ubuntu 12.04 LTS where
libpng.pc apparently prioritizes libpng12.
2016-11-19 12:59:48 +01:00
Andreas Haas
8d3efe2b7d
X11: Fix maximized boot splash
...
When instructing the window manager to (un)maximize a window, the resulting resolution
is recieved via an XEvent of type "ConfigureNotify".
The problem here was that these events were only handled in the `OS_X11::process_xevents()` method,
which is initially called on the first iteration of the main loop.
Because of this, the VideoMode still hadn't been updated yet when doing the boot splash setup.
2016-11-16 02:04:39 +01:00
Rémi Verschelde
d314c24d72
Merge pull request #7110 from RandomShaper/patch-2
...
Update/fix Android build
2016-11-14 08:27:44 +01:00
Rémi Verschelde
715ab48a54
Merge pull request #7107 from eska014/wasm
...
Some WebAssembly stuff
2016-11-14 08:26:24 +01:00
Pedro J. Estébanez
5a26459c06
Update/fix Android build
...
Fix wrong path for 32-bit Windows, which fixes #7084
Exclude 32-bit Windows from multi-threaded linking because it's not supported by the NDK
Remove 32-bit Linux as there is no NDK variant for it
2016-11-13 23:54:06 +01:00
eska
d87b1d1338
Remove explicit BINARYEN_METHOD for WebAssembly build
...
This option is the default since Binaryen version 21.
2016-11-13 15:38:12 +01:00
eska
82addf2ffe
Enable memory growth in WebAssembly builds
...
This allows setting TOTAL_MEMORY during runtime at the cost of reserving
a bit more memory.
2016-11-13 15:29:03 +01:00
Rémi Verschelde
84822c3dbf
Merge pull request #7079 from RandomShaper/quicker-android-export
...
Make Android export quicker (especially on Windows)
2016-11-11 10:52:10 +01:00
Rémi Verschelde
22542bc767
Merge pull request #7030 from volzhs/fix-dir-access-android
...
Fix Directory.dir_exist/get_current_dir for 'res://' on Android
2016-11-09 12:54:59 +01:00
Pedro J. Estébanez
56721e5d9d
Make Android export quicker (especially on Windows)
2016-11-08 20:56:17 +01:00
volzhs
8d454ed9a7
Fix Directory.dir_exist/get_current_dir for 'res://' on Android
...
Fix #7014
2016-11-09 01:50:00 +09:00
ISylvox
b5c383fd61
vsnc --> vsync
2016-11-08 21:06:57 +07:00
Rémi Verschelde
be4eff1d8b
Merge pull request #7019 from vnen/rename-winrt-uwp
...
Rename WinRT platform to UWP
2016-11-06 12:03:10 +01:00
Rémi Verschelde
5e360fe178
server: Allow building against system libraries
2016-11-03 22:53:18 +01:00
George Marques
411faaa6f4
Rename remaining WinRT references to UWP
2016-11-03 14:51:08 -02:00
George Marques
b113c7b7a3
Rename WINRT_ENABLED to UWP_ENABLED
2016-11-03 14:51:08 -02:00
George Marques
fb5a73a39f
Rename WinRT files to UWP
2016-11-03 14:51:08 -02:00
Rémi Verschelde
cc95d4448c
scons: Reorder options for clarity
...
Also prefix all thirdparty-related toggles with `builtin`.
2016-11-03 07:45:08 +01:00
Pedro J. Estébanez
b18ff942be
Improve Android build (Clang + tidyness)
2016-11-02 10:54:51 +01:00
Rémi Verschelde
f34151ff0f
style: Various other PEP8 fixes in Python files
...
Done with `autopep8 --select=E7`, fixes:
- E701 - Put colon-separated compound statement on separate lines.
- E702 - Put semicolon-separated compound statement on separate lines.
- E703 - Put semicolon-separated compound statement on separate lines.
- E711 - Fix comparison with None.
- E712 - Fix (trivial case of) comparison with boolean.
- E713 - Fix (trivial case of) non-membership check.
- E721 - Fix various deprecated code (via lib2to3).
2016-11-01 00:35:16 +01:00
Rémi Verschelde
817dd7ccbb
style: Fix PEP8 blank lines issues in Python files
...
Done with `autopep8 --select=E3,W3`, fixes:
- E301 - Add missing blank line.
- E302 - Add missing 2 blank lines.
- E303 - Remove extra blank lines.
- E304 - Remove blank line following function decorator.
- E309 - Add missing blank line.
- W391 - Remove trailing blank lines.
2016-11-01 00:35:16 +01:00
Rémi Verschelde
d4c17700aa
style: Fix PEP8 whitespace issues in Python files
...
Done with `autopep8 --select=E2,W2`, fixes:
- E201 - Remove extraneous whitespace.
- E202 - Remove extraneous whitespace.
- E203 - Remove extraneous whitespace.
- E211 - Remove extraneous whitespace.
- E221 - Fix extraneous whitespace around keywords.
- E222 - Fix extraneous whitespace around keywords.
- E223 - Fix extraneous whitespace around keywords.
- E224 - Remove extraneous whitespace around operator.
- E225 - Fix missing whitespace around operator.
- E226 - Fix missing whitespace around operator.
- E227 - Fix missing whitespace around operator.
- E228 - Fix missing whitespace around operator.
- E231 - Add missing whitespace.
- E231 - Fix various deprecated code (via lib2to3).
- E241 - Fix extraneous whitespace around keywords.
- E242 - Remove extraneous whitespace around operator.
- E251 - Remove whitespace around parameter '=' sign.
- E261 - Fix spacing after comment hash.
- E262 - Fix spacing after comment hash.
- E265 - Format block comments.
- E271 - Fix extraneous whitespace around keywords.
- E272 - Fix extraneous whitespace around keywords.
- E273 - Fix extraneous whitespace around keywords.
- E274 - Fix extraneous whitespace around keywords.
- W291 - Remove trailing whitespace.
- W293 - Remove trailing whitespace.
2016-11-01 00:35:16 +01:00
Rémi Verschelde
97c8508f5e
style: Start applying PEP8 to Python files, indentation issues
...
Done with `autopep8 --select=E1`, fixes:
- E101 - Reindent all lines.
- E112 - Fix under-indented comments.
- E113 - Fix over-indented comments.
- E115 - Fix under-indented comments.
- E116 - Fix over-indented comments.
- E121 - Fix a badly indented line.
- E122 - Fix a badly indented line.
- E123 - Fix a badly indented line.
- E124 - Fix a badly indented line.
- E125 - Fix indentation undistinguish from the next logical line.
- E126 - Fix a badly indented line.
- E127 - Fix a badly indented line.
- E128 - Fix a badly indented line.
- E129 - Fix a badly indented line.
2016-11-01 00:33:51 +01:00
eska
d6f2862429
Add option 'wasm' to compile to WebAssembly in web export
...
WebAssembly is still experimental, so disabled by default.
The HTML shell file now uses $GODOT_BASE, a placeholder for the
base filename, instead of $GODOT_JS, $GODOT_MEM and $GODOT_FS.
2016-10-31 01:28:01 +01:00
Rémi Verschelde
7384a6519f
Merge pull request #6993 from eska014/remove-js-compression
...
Remove JavaScript compilation option 'compress'.
2016-10-31 12:43:57 +01:00
Rémi Verschelde
434d120226
Merge pull request #6981 from Faless/ipv6_fix
...
Use IPv6 dual stack socket by default. Allow restricting IP version for TCP/UDP.
2016-10-31 08:00:54 +01:00
Rémi Verschelde
c6c13eb8fc
Merge pull request #6490 from zaps166/webm-pr
...
Add WebM support
2016-10-30 18:12:00 +01:00
Fabio Alessandrelli
eb27e993f0
TCP/UDP Listen sockets can now be set to IPv6 only
2016-10-30 17:46:05 +01:00
Fabio Alessandrelli
812908e236
Fix windows debugger connection problems.
...
Unify network socket creation between platform.
Ensure IPV6_V6ONLY flag is not set on sockets (allow IPv4 connection in IPv6 socket, dual-stack).
2016-10-30 17:46:05 +01:00
Fabio Alessandrelli
ee69bd81cf
TCPServer listen now default to IP type ANY (v6 socket with v4 support)
2016-10-30 17:46:05 +01:00
George Marques
a52cbd65a8
Merge pull request #6937 from SuperUserNameMan/fix_win_standalone_msvc_and_mingw_incompatibilities
...
fix bug introduced by #6501
2016-10-28 20:57:51 -02:00
Juan Linietsky
53d8f2b1ec
PBR more or less working, still working on bringing gizmos back
2016-10-27 11:50:26 -03:00
yg2f
f7773d499d
fix bug introduced by #6501
...
( @Akien : this PR is for current HEAD only, not to be cherry-picked for 2.1.1 )
this is manual revertion of #6501 which introduced a bug that prevented
scons from detecting Mingw under Windows when MSVC was installed.
(thanks to @vnen for finding this)
AND
it fixes the actual bug that prevented scons from detecting MSVC standalone
compiler ( a confusions between ``VSINSTALLDIR`` and ``VCINSTALLDIR`` )
The freeware Standalone MSVC C++ Build Tools are available here :
http://landinghub.visualstudio.com/visual-cpp-build-tools
2016-10-26 19:29:30 +02:00
Fabio Alessandrelli
25e29972a9
Fix PacketPeerUDP get_packet_port()
...
Properly convert port field from network to system ordering on incoming packets.
2016-10-26 18:27:01 +02:00
Rémi Verschelde
c67e3a485d
Merge pull request #6925 from godotengine/ipv6
...
Adding IPv6 support
2016-10-26 14:32:51 +02:00
Fabio Alessandrelli
80e911647c
Pass correct address size (ipv4,ipv6) to socket connect, bind, sendto
...
The address size passed to network system calls now reflects the the actual IP type (v4 or v6).
Fix Windows and OSX ipv6 sockets
2016-10-26 08:20:31 +02:00
Błażej Szczygieł
d710b265f8
Add WebM module
...
Use already existing libraries: libvorbis and libopus. Also use newly
added libraries: libvpx, libwebm, libsimplewebm.
2016-10-23 02:46:06 +02:00
Rémi Verschelde
24337f9c5e
Merge pull request #6884 from vnen/html-export-char
...
Fix extraneous NULL character on HTML export
2016-10-22 13:09:54 +02:00
Rémi Verschelde
7740b3912c
Merge pull request #6882 from vnen/mouse-mode
...
Fix the hiding of mouse cursor before interaction
2016-10-22 13:08:18 +02:00
Randy Tan Shaoxian
638a31d972
Fixed tiny error in detect.py causing compilation for Android to fail.
...
(cherry picked from commit c9d7f77c6f
)
2016-10-22 13:04:13 +02:00
Rémi Verschelde
ee6c5c5c23
Merge pull request #6858 from zaps166/gcc-color-output
...
SCons: Use colored output if available, change "colored"->"verbose"
2016-10-22 12:59:45 +02:00
George Marques
604ddd691c
Fix extraneous NULL character on HTML export
...
Fix #2801
2016-10-20 21:11:13 -02:00
eska
fa219e02d7
Remove JavaScript compilation option compress
.
...
This functionality has been removed from Emscripten in version 1.36.13,
server-side compression is recommended instead.
2016-10-21 00:02:44 +02:00
George Marques
414d58e6c0
Fix the hiding of mouse cursor before interaction
...
Fix part of #6633
2016-10-20 20:01:28 -02:00
Ariel Manzur
672225b710
added windows support for ipv6, cleaned up unix code
2016-10-20 07:04:10 -03:00
Rémi Verschelde
c23e8797f1
Merge pull request #6855 from vnen/xaudio2-driver
...
Isolate XAudio2 driver
2016-10-18 07:22:10 +02:00
George Marques
f3102160a1
Isolate XAudio2 driver
...
Now it's possible to compile for Windows platform if wanted. It's
supported only for Windows 8 or later, so it's not enabled by default.
2016-10-17 20:42:12 -02:00
Błażej Szczygieł
2bf4553fe0
SCons: Use colored output if available, change "colored"->"verbose"
2016-10-17 22:40:14 +02:00
Rémi Verschelde
e96c49f849
Merge pull request #6850 from akien-mga/pr-scsub-shebang
...
SCsub: Add python shebang as a hint for syntax highlighting
2016-10-17 20:13:18 +02:00
Rémi Verschelde
fc8ccd5b8c
SCsub: Add python shebang as a hint for syntax highlighting
...
Also switch existing shebangs to "better" /usr/bin/env python.
2016-10-17 20:10:46 +02:00
Rémi Verschelde
bdce7eefa0
Merge pull request #6846 from volzhs/android-dir-exists
...
Fix crash when using Directory.dir_exists(path) on Android
2016-10-17 10:10:25 +02:00
Rémi Verschelde
0eccf42884
Merge pull request #6723 from bvbfan/patch-1
...
Correct OS architecture detection
2016-10-17 09:48:26 +02:00
Błażej Szczygieł
4ffa8f224d
Theora: Don't compile unnecessary files, rename "x86_opt_*"
2016-10-16 22:31:27 +02:00
volzhs
4a57821349
Fix crash when using Directory.dir_exists(path) on Android
2016-10-17 01:29:31 +09:00
Rémi Verschelde
edbc0c0d0b
freetype: Make it a module and split thirdparty library
...
Comment out the weird workaround for building on Windows at it might
not be needed anymore. Testing needed to confirm.
2016-10-15 18:10:17 +02:00
Rémi Verschelde
cbf52606f4
zlib: Split thirdparty files, simplify scons option
2016-10-15 12:20:47 +02:00
Rémi Verschelde
36738ddda4
glew: Split thirdparty files and isolate env
...
Not fully happy about the way this one interacts with the various
platforms. Maybe the platform_config.h should be generated by the
SCsub instead of passing a define just to know where is the header.
2016-10-15 12:01:28 +02:00
Rémi Verschelde
8311a78df5
squish: Move to a module and split thirdparty lib
2016-10-15 12:01:28 +02:00
Rémi Verschelde
5c12c9e69b
mpc: Move to a module and split thirdparty libmpcdec
2016-10-15 11:50:42 +02:00
Rémi Verschelde
cfcc8a20e8
theora: Move to a module and split thirdparty lib
...
Same rationale as the previous commits.
2016-10-15 11:50:41 +02:00
Rémi Verschelde
422196759f
openssl: Move to a module and split thirdparty lib
...
Same rationale as the previous commits.
2016-10-15 11:50:41 +02:00
Rémi Verschelde
d9a291f641
ogg/vorbis/opus: Make them modules and unbundle thirdparty libs
...
Took the opportunity to undo the Godot changed made to the
opus source. The opus module should eventually be built in its
own environment to avoid polluting others with too many include
dirs and defines.
TODO: Fix the platform/ stuff for opus.
2016-10-15 11:50:40 +02:00
Rémi Verschelde
ee3cf211c6
webp: Make it a module and unbundle libwebp thirdparty files
...
Note that there are two Godot-specific changes made to libwebp
for the javascript/HTML5 platform. They are documented in the
README.md.
2016-10-15 11:50:39 +02:00
Rémi Verschelde
c31ad71f10
enet: Split enet thirdparty files and allow unbundling
...
Building against shared libraries only implemented for Linux X11 so far.
TODO: Document Godot's modifications of upstream enet.
2016-10-15 11:50:39 +02:00
Rémi Verschelde
5fef84a135
png: Split library to thirdparty dir and allow unbundling
...
Uses the new structure agreed upon in #6157 , but the thirdparty/ folder
does not behave following a logic similar to that of modules/ yet.
The png driver can't be moved to a module as discussed in #6157 , as it's
required by core together with a few other ImageLoader implementations
(see drivers/register_driver_types.cpp:register_core_driver_types())
Dropped the possibility to disable PNG support, it's a core component
of Godot.
2016-10-15 11:50:39 +02:00
Rémi Verschelde
f63bf12193
Drop nedmalloc which is apparently not used anymore
2016-10-14 18:21:23 +02:00
Rémi Verschelde
d3d0507c05
Remove speex support, it is obsoleted by opus
...
As mentioned by upstream, Xiph.Org [0]:
> The Speex codec has been obsoleted by Opus. It will continue to be
> available, but since Opus is better than Speex in all aspects,
> users are encouraged to switch.
[0] http://www.speex.org/
2016-10-13 18:58:56 +02:00
Anthony Fieroni
f87e32696d
Correct OS architecture detection
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2016-10-11 20:58:24 +03:00
Juan Linietsky
1527cf8c0d
2D Shaders are working again using the new syntax, though all is buggy in general
2016-10-10 18:31:01 -03:00
Rémi Verschelde
93127070a6
Merge pull request #6704 from RandomShaper/fix-android-build-flags
...
Fix compile flags not getting to the Android build
2016-10-09 14:34:40 +02:00
Pedro J. Estébanez
7f51bb7b1c
Fix compile flags not getting to the Android build
2016-10-04 16:55:29 +02:00
Juan Linietsky
22d83bc9f6
Begining of GLES3 renderer:
...
-Most 2D drawing is implemented
-Missing shaders
-Missing all 3D
-Editor needs to be set on update always to be used, otherwise it does not refresh
-Large parts of editor not working
2016-10-03 21:35:16 +02:00
Rémi Verschelde
9fce85f9d7
Merge pull request #6501 from SuperUserNameMan/windows_compile_with_standalone_msvc
...
scons detects standalone MSVC on Windows
2016-10-03 11:36:44 +02:00
Rémi Verschelde
90f4e76a46
Merge pull request #6479 from RandomShaper/improve-debug-focus
...
Improve debug focus behavior
2016-10-03 11:36:01 +02:00
Marc Gilleron
0c09de3ef1
Windows: prevent huge prints from crashing the engine
2016-09-29 03:15:12 +02:00
syskrank
af4b0db1e4
removed confusing "if(true)" statement with empty "else" block
2016-09-26 12:30:59 +03:00
romeojulietthotel
94d6757a0d
Use pkgconfig to locate ALSA libs ( #6119 )
...
* This allows building when ALSA libs are in a non-standard location. PKG_CONFIG_PATH alone is not enough as the final link fails. Adding this makes the final link succeed.
* The extra LIBS flag for alsa is not needed so removing.
2016-09-23 07:38:57 +02:00
Rémi Verschelde
2af6b3dd1b
Merge pull request #6574 from RandomShaper/fix-android-export
...
Fix manifest generation bug in Android export
2016-09-23 07:28:04 +02:00
Andreas Haas
6fcf2b2bd8
x11: Fix event.is_action() for release of modifier keys
...
The bug was that the release events for these also had the modifier state set, so the event comparison
failed.
Fixes #5901
2016-09-22 12:24:44 +02:00
Pedro J. Estébanez
2c9d98bb48
Fix manifest generation bug in Android export
2016-09-21 12:46:40 +02:00
George Marques
5c21d49caf
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.
2016-09-20 20:02:58 -03:00
yg2f
663d4ee7de
scons detects standalone MSVC on Windows
...
Under Windows, Scons is now capable of detecting and compiling with
standalone MSVC compilers (aka "Visual C++ Build Tools").
http://landinghub.visualstudio.com/visual-cpp-build-tools
Tried with version 2015, and native x86 and x64 compilers under
Windows 10 pro 64 and Windows 8.1 64, with the default Win8 SDK
provided by the "Visual C++ Build Tools" web-installer.
Follow the same compiling instructions than for compiling with Visual
Studio, except that Visual Studio is no more required.
KNOWN ISSUES :
- ``methods.detect_visual_c_compiler_version()`` will emit a warning message
on computers where the ``VSINSTALLDIR`` environement variable is not present.
But it should compile just fine and still automatically detects the 32 or
64 bits according to the compiler you picked.
TODO :
- eventually, update ``platform/winrt/dectet.py`` with function
``methods.msvc_is_detected()`` and try to compile winrt/UWP with
these standalone compilers (if you did not select Win10 SDK when
installing the standalone tools, you can run it again).
- update doc to make users aware of "Visual C++ Build Tools" aka
"stadalone MSVC".
- eventually, update ``methods.detect_visual_c_compiler_version()``
2016-09-16 11:17:57 +02:00
Pedro J. Estébanez
66dac878ac
Improve debug focus behavior
...
Fix focusing debugged game on Windows
Add re-focusing editor on continue
2016-09-14 04:02:18 +02:00
George Marques
291e985882
Fix UWP gamepad
2016-09-12 23:41:34 -03:00
George Marques
e6ef92d217
Fix build error in WinRT export
2016-09-10 20:21:46 -03:00
Juan Linietsky
1f7fde299d
Revert "Change Android float ABI to hard"
2016-09-10 12:31:01 -03:00
Juan Linietsky
fc61eb37ce
Merge pull request #5920 from 29jm/fix-warnings
...
Fix some more warnings
2016-09-10 12:21:02 -03:00
Juan Linietsky
7a27d5d9e7
Merge pull request #6363 from vnen/winrt
...
Fix the support for WinRT/UWP
2016-09-10 11:47:42 -03:00
Juan Linietsky
0a9c08f87c
Merge pull request #6438 from RandomShaper/android-hard-float-abi
...
Change Android float ABI to hard
2016-09-10 11:40:44 -03:00
Pedro J. Estébanez
68cd19a6c2
Change Android float ABI to hard
2016-09-09 13:31:35 +02:00
Rémi Verschelde
233a991517
Merge pull request #6409 from Hinsbart/osx_gamepad
...
osx: Support gamepad input.
2016-09-08 07:48:18 +02:00
Rémi Verschelde
632d2477f6
Merge pull request #6415 from RandomShaper/fix-android-build
...
Fix Android build (#5645 )
2016-09-07 20:42:09 +02:00
Pedro J. Estébanez
e9065632c6
Fix (potentially) Android libs packaging issue ( #5645 )
2016-09-07 02:41:16 +02:00
George Marques
15458c8e6a
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.
2016-09-06 13:09:45 -03:00
Andreas Haas
8c886b9d7a
osx: Support gamepad input.
...
Fixes #3881
Vibration support is not optimal yet as it doesn't try to emulate the "weak" and "strong" motor strength,
but just takes the parameter with the highest value for the vibration gain.
2016-09-06 00:47:54 +02:00
Rémi Verschelde
3efe1231f0
Move templates and distribution stuff to tools/dist
...
Also removed the obsolete iOS xcode template.
2016-09-05 07:49:10 +02:00
George Marques
c1dfbb7628
Remove embedded ANGLE headers
...
There's now a dependency on external ANGLE code, those are not needed
anymore.
2016-09-03 19:29:52 -03:00
George Marques
e21702f764
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.
2016-09-03 19:28:49 -03:00
Rémi Verschelde
c826ae1566
Merge pull request #6321 from hurikhan/fix_windows_mousemode
...
Windows: Hide the mouse cursor when MOUSE_MODE_CAPTURED is activated.
2016-08-31 08:04:07 +02:00
Rémi Verschelde
5efe47fb0b
Merge pull request #4376 from eska014/js-eval
...
Add JavaScript eval interface to web export
2016-08-30 14:52:35 +02:00
Rémi Verschelde
ecaa8844ca
Merge pull request #6116 from Hinsbart/xrandr_so
...
x11: Use proper sonames for loading libXrandr.
2016-08-29 19:04:13 +02:00
Mario Schlack
f0b6a242cc
Hide the mouse cursor when MOUSE_MODE_CAPTURED is activated.
2016-08-29 13:14:38 +08:00
Juan Linietsky
6efbe9342a
fix to mingw build
2016-08-20 01:55:53 -03:00
Juan Linietsky
38338e90c0
ENet windows compilation fixes.
...
For reference, when you include a Windows header (be it directly windows.h or something that includes it)
put it at the end of the includes. it seems I forgot.
2016-08-20 01:05:57 -03:00
Johan Manuel
a4674bda47
Fix some comparisons between signed and unsigned integers
2016-08-13 13:21:35 +02:00
Johan Manuel
046f94d3ac
Remove some unused variables
2016-08-13 13:21:35 +02:00
Andreas Haas
f59860f464
x11: Use proper sonames for loading libXrandr.
2016-08-11 17:40:59 +02:00
marcelofg55
bf320fd4ea
Crashfix for OSX on Sierra beta
2016-08-09 13:40:14 -03:00
Skyfrit
4f6a21b0df
Android: Rename values-zh to values-zh-rCN ( #6063 )
2016-08-08 11:51:30 +02:00
Skyfrit
664b5b5137
Android: Add support for Traditional Chinese (HK) ( #6061 )
2016-08-08 11:49:51 +02:00
Skyfrit
8ab4acd17f
Android: Add support for Traditional Chinese (TW) ( #6061 )
2016-08-08 11:49:35 +02:00
marcelofg55
38de4d24ef
Fix set_window_size not setting the correct size on OSX
2016-08-02 22:30:19 -03:00
George Marques
0bc589a0c7
Fix Windows resource script
2016-07-27 15:35:49 -03:00
George Marques
b48fd16add
Improve Windows application details
2016-07-27 12:37:12 -03:00
Rémi Verschelde
fd659e869b
Windows: Make alert message box use MB_TASKMODAL
...
This flag pauses the current running thread, allowing for the user to see the
alert and acknowledge it before the thread continues (and e.g. crashes :)).
Thanks to @SuperUserNameMan for finding it.
Ref: https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx
2016-07-26 15:16:45 +02:00
Rémi Verschelde
dc3c32b488
Merge pull request #5894 from vnen/windows-set-position
...
Avoid changing position when the window is fullscreen
2016-07-24 17:55:25 +02:00
Juan Linietsky
9213400cd5
Merge pull request #5415 from volzhs/improve-android-payment
...
Improve android payment
2016-07-24 12:18:13 -03:00
George Marques
7be70c5a3c
Avoid changing position when the window is fullscreen
2016-07-24 12:07:59 -03:00
Rémi Verschelde
82d18f4c1c
Merge pull request #5845 from hurikhan/x11_cleanup
...
Code cleanup in platform/x11
2016-07-22 08:35:26 +02:00
Mario Schlack
503f9ab9d9
Code cleanup in platform/x11
2016-07-21 21:11:34 +02:00
Mario Schlack
d04ada3973
Implement OS.request_attention() for X11
2016-07-21 19:40:36 +02:00
Rémi Verschelde
b623acb718
Merge pull request #5841 from vnen/fix-windows-wheel
...
Fix mouse wheel event position on Windows
2016-07-21 17:31:24 +02:00
Rémi Verschelde
93de25f68a
Merge pull request #5837 from hurikhan/android_cleanup
...
Minor code formatting in platform/android
2016-07-21 17:31:14 +02:00
GungnirInd
2c1a74fb3a
Implement OS.request_attention() for OSX ( #5662 )
...
Keeps bouncing icon until user focuses window
2016-07-21 17:30:20 +02:00
Rémi Verschelde
d723e5a62f
Merge pull request #5560 from vnen/os-request-attention
...
Add OS.request_attention() for Windows
2016-07-21 17:29:45 +02:00
George Marques
f4c0bc20c3
Fix mouse wheel event position on Windows
2016-07-21 12:14:25 -03:00
Mario Schlack
beaa56bff2
Minor code formatting in platform/android
2016-07-21 12:07:01 +02:00
Rémi Verschelde
b1cca17053
Merge pull request #5835 from volzhs/issue-5831
...
Fix compile error if use android_stl=yes
2016-07-21 10:37:18 +02:00
volzhs
01e39ecec8
Fix compile error if use android_stl=yes
2016-07-21 17:31:46 +09:00
Rémi Verschelde
5274f2a126
Merge pull request #5819 from hurikhan/android_getScreenDPI
...
Implement get_screen_dpi() on Android
2016-07-21 09:09:49 +02:00
Mario Schlack
0717893772
Implement get_screen_dpi() on Android
2016-07-20 14:54:48 +02:00
Juan Linietsky
0988970c1f
Fixed properly not save signals that already exist in their base scenes, closes #5656
2016-07-19 21:26:12 -03:00
Juan Linietsky
587826f879
remove GLU dependency, closes #3787
2016-07-18 17:25:03 -03:00
volzhs
79cb91dc84
Add querying details of IAP items for android
2016-07-18 23:45:58 +09:00
volzhs
f26f181ba9
Fix can't get all info if user purchases many items and not consumed
2016-07-18 23:45:58 +09:00
Rémi Verschelde
8de5aedb9e
Merge pull request #5718 from jay3d/master
...
Added gyroscope support to Godot and Android
2016-07-18 00:52:15 +02:00
Rémi Verschelde
523e46ad0a
Revert "Make editor compatible with Windows high contrast themes"
...
This reverts commit 85a5290ee8
.
The patch itself is good and it could maybe be readded in the future,
but right now Microsoft forced its Windows 10 "update" on people with older
Intel HD Graphics 3000 IGP without ensuring that they can ship proper drivers,
and such users seem to get Godot crashing due to this patch. Sorry :(
Closes #5452 .
2016-07-18 00:24:21 +02:00
Jamil Halabi
370ae3512d
Added gyroscope support to Godot and Android
2016-07-16 01:43:32 +08:00
Rémi Verschelde
26baaf447a
WinRT: Add missing license file for ANGLE
...
Also drop the unused "All rights reserved" FunctionDiscoveryKeys_devpkey.h
Fixes #4859 .
2016-07-14 08:49:02 +02:00
sanikoyes
978cb0e884
Fix crash in FileAccessJAndroid::file_exists (does not free local ref)
2016-07-11 12:41:54 +08:00
Juan Linietsky
d279d060e1
Merge pull request #5077 from RandomShaper/improve-android-build
...
Improve Android build
2016-07-10 13:57:17 -03:00
Juan Linietsky
e74d71a5bf
Merge pull request #5574 from volzhs/android-app-id
...
Add android_add_default_config for config.py
2016-07-10 13:03:37 -03:00
Juan Linietsky
28641fd9b8
Merge pull request #5525 from SuperUserNameMan/window_get_latin_kb_variant
...
windows get_latin_keyboard_variant() implementation and gdscript binding, #5503
2016-07-10 12:41:05 -03:00
Juan Linietsky
864c0e84de
line/col label was changing size with each cursor move, forcing the GUI to resize upwards and costing considerably CPU usage.
...
It has been changed so it won't resize the UI when modified.
This will make the code editor feel a lot smoother.
2016-07-09 14:56:08 -03:00
Rémi Verschelde
02aeac12d1
OSX export: Default to fat format, make it an enum
...
Since we want to distribute only the fat binary in the official templates, this should
make it work out of the box. 32 bits and 64 bits options are still available for people
that want them, but will throw an error if the binaries are not in the template zip.
2016-07-09 00:46:10 +02:00
eska
4beeff9433
Pass mouse position to Input singleton in web export
2016-07-08 20:09:25 +02:00
Juan Linietsky
7e3044981e
Avoid crash if setting modifiers fails, closes #5158
2016-07-08 11:28:09 -03:00
Rémi Verschelde
3fcb9b1ec1
Removed unused variables (second pass) + dead code
...
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
2016-07-07 23:15:59 +02:00
Rémi Verschelde
b6ac91c0e6
Removed unused variables (first pass)
...
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
2016-07-07 23:15:03 +02:00
volzhs
40d3234304
Add android_add_default_config for config.py
...
usage : env.android_add_default_config("applicationId 'com.godot.game'")
2016-07-07 04:03:50 +09:00
George Marques
5c355a63d3
Add OS.request_attention() for Windows
2016-07-05 12:29:08 -03:00
Rémi Verschelde
90b5b0d1c9
Merge pull request #5552 from volzhs/fix-jni-null
...
Fix crash when null value through jni on android
2016-07-04 23:39:31 +02:00
Rémi Verschelde
176920278f
Merge pull request #5551 from eska014/bsd-no-libdl
...
Link libdl only on Linux, fix BSD build
2016-07-04 23:39:11 +02:00
volzhs
b09dbaa78e
Fix crash when null value through jni on android
2016-07-05 04:41:46 +09:00
eska
a2386bd2b2
Link libdl only on Linux, fix BSD build
2016-07-04 18:39:27 +02:00
SuperUserNameMan
7a142780f0
windows get_latin_keyboard_variant() implementation and gdscript binding
2016-07-03 19:35:13 +02:00
Rémi Verschelde
6bd22b9c2e
Merge pull request #5516 from Hinsbart/fix_win_freeze
...
Windows: prevent freeze while moving or resizing the game window.
2016-07-03 19:17:09 +02:00
Rémi Verschelde
9693f37fcc
Merge pull request #5491 from volzhs/fix-jni-bool-string
...
Fix wrong return bool, string, string array data through jni
2016-07-03 19:11:04 +02:00
Juan Linietsky
1726bacf78
missnig ;
2016-07-02 16:04:00 -03:00
Juan Linietsky
973a12c5f2
Data dir returns a symlink in Android 6.0, which confuses DirAccess on android, this should fix it
2016-07-02 11:49:52 -03:00
Andreas Haas
6856c52491
Windows: prevent freeze while moving or resizing the game window.
...
When moving or resizing the window, Windows spins up a seperate event-loop, effectively blocking the normal one.
To work around this, we're starting a timer that will continue sending WM_TIMER messages which we can use to keep the mainloop running.
fixes #4695
2016-07-01 16:55:53 +02:00
eska
913361928f
Add JavaScript eval interface
2016-06-30 15:45:40 +02:00
Rémi Verschelde
d81b635957
Merge pull request #5495 from SuperUserNameMan/joystick_bug_windows
...
fixes #5464 windows_joystick close_joystick bug
2016-06-30 08:07:59 +02:00
Rémi Verschelde
91655b9a18
Merge pull request #5494 from jay3d/master
...
Fixed building for latest Haiku nightlies.
2016-06-30 08:07:24 +02:00
SuperUserNameMan
2511f48339
fixes #5464 windows_joystick close_joystick bug
2016-06-29 23:00:45 +02:00
Jamil Halabi
fbdb717cae
Fixed building for latest Haiku nightlies.
2016-06-29 15:40:25 -04:00
volzhs
aac0af043c
Fix wrong return bool, string, string array data through jni
2016-06-30 01:23:55 +09:00
Pedro J. Estébanez
e7b2626707
Make Android build smarter (SCons + Gradle)
...
Upgrade Gradle and Android plugin for Gradle
Disable all signing and zip-aligning for the export templates
Give correct names to generated APKs
Put .so files built by SCons right where Gradle has to pick them according to arch & build type
Downgrade NDK platform to 14 to match minSdkVersion
2016-06-27 10:49:15 +02:00
Ferdinand Thiessen
9e751178eb
Fix compiling for X11 on non-86, this fixes #5444
2016-06-27 03:03:42 +02:00
George Marques
bf44275b1a
Fix visual server error when minimizing the window
2016-06-26 18:54:34 -03:00
Rémi Verschelde
7d06d50e65
Merge pull request #5395 from vnen/android-sensors
...
Fix Android sensors polling rate on resume
2016-06-26 09:46:10 +02:00
Rémi Verschelde
fad6b29a59
Merge pull request #5390 from volzhs/jni-stringarray
...
Fix string array parameter check with jni
2016-06-26 09:45:36 +02:00
Juan Linietsky
8dac3bf3b1
Added function to notify ScriptLanguage when a thread is created/freed, allows scripts to allocate a stack there via TLS
2016-06-25 10:41:23 -03:00
Rémi Verschelde
c931ed976b
Gradle: remove trailing spaces
2016-06-25 13:39:03 +02:00
paper-pauper
dd1ad31757
Changes X11 res_name to "Godot_Engine"
...
Add additional/alternative WM_CLASS; only affects the game window, avoids redundancy and allows finer control in WMs (#5265 )
2016-06-25 07:15:21 +02:00
George Marques
6d37253be5
Fix Android sensors polling rate on resume
...
Fix #5306
2016-06-24 21:00:04 -03:00
volzhs
456b7733fc
Fix string array parameter check with jni
2016-06-25 02:05:46 +09:00
volzhs
a5a5bdef25
Remove duplicated aidl for android
...
Tested IAP function on device.
2016-06-25 01:11:21 +09:00
Ariel Manzur
10c512e46d
added "arch" parameter, made iphone use it to build isim
2016-06-23 07:41:54 +02:00
Rémi Verschelde
dc8c145488
iOS simulator: merge into iphone detect.py
...
Fixes #4489
2016-06-23 07:41:54 +02:00
Rémi Verschelde
0a72f9ccb8
Merge pull request #5362 from J08nY/png
...
libpng: New version 1.6.27
2016-06-23 07:40:03 +02:00
Rémi Verschelde
92ee868a94
Merge pull request #5358 from Keyaku/alert-for-osx
...
Added alert() functionality for OS X
2016-06-23 07:39:34 +02:00
Rémi Verschelde
b9ed5b12c9
Merge pull request #5235 from volzhs/fix-android-export
...
fix errors while exporting android
2016-06-23 07:35:22 +02:00
Rémi Verschelde
daa4180210
Merge pull request #5364 from RandomShaper/windows-high-contrast-compat
...
Make editor compatible with Windows high contrast themes
2016-06-23 07:16:13 +02:00
Juan Linietsky
d6225b1e00
Improved binding system (ObjectTypeDB::bind_method) to be friendlier to statically typed languages, should help in the Mono integration.
...
Disabled by default.
2016-06-22 23:13:41 -03:00
Pedro J. Estébanez
85a5290ee8
Make editor compatible with Windows high contrast themes
...
By providing a manifest specifying the targeted Windows versions (as per https://msdn.microsoft.com/en-us/library/windows/desktop/hh404233(v=vs.85).aspx#_______supporting_high_contrast_themes_in_windows_8_and_later ) now the Godot editor renders normally under a high contrast theme on Windows, instead of staying white/black.
2016-06-23 00:14:15 +02:00
J08nY
0ab05b09e4
Fixed iCCp chunk in pngs
...
neccesary for libpng 1.6.27 to work silently
2016-06-22 21:13:29 +02:00
Keyaku
072da51f20
Added alert() functionality for OS X
2016-06-22 16:58:31 +01:00
Rémi Verschelde
842e7bfc2f
Merge pull request #5357 from volzhs/fix-locale-android
...
fix android resource locale
2016-06-22 16:05:59 +02:00
volzhs
591be5df25
fix android resource locale
2016-06-22 22:32:03 +09:00
volzhs
780fa60072
correct current Intent for android
2016-06-21 03:32:44 +09:00
Wilhem Barbier
5d95072879
Remove the vibration effect from the joystick when stopping
2016-06-20 11:01:07 +02:00
Rémi Verschelde
225fbe0a90
isim: Sync with iphone files list
...
Should fix broken build due to Appirater.
2016-06-20 08:31:42 +02:00
Rémi Verschelde
8a27835bca
Merge pull request #5285 from brakhane/fix-memset
...
fix memset calls
2016-06-19 13:10:29 +02:00
Rémi Verschelde
57e1387199
Merge pull request #5225 from Hinsbart/x_rumble
...
Windows: Support gamepad vibration using XInput.
2016-06-19 12:59:18 +02:00
Rémi Verschelde
8f2115529e
Merge pull request #5135 from volzhs/android-manifest
...
fix android support screen property for large screen
2016-06-19 12:49:42 +02:00
Dennis Brakhane
3d85a14404
fix memset calls
...
Order is "mem, val, count", not "mem, count, val"
2016-06-19 02:07:51 +02:00
Rémi Verschelde
b7dbf9207a
Drop empty files that are not used anywhere
...
Part of #5272
2016-06-18 19:46:30 +02:00
Juan Linietsky
61655d6dc2
Fixed make_dir and make_dir_recursive erros, closes #1680 closes #1872
2016-06-18 11:13:03 -03:00
Rémi Verschelde
a7fc04626a
Add missing license headers in our source files ( #5255 )
...
Also removes a couple wrong Godot headers from third-party source files.
2016-06-18 14:46:12 +02:00
volzhs
e6bbe91994
fix errors while exporting android
2016-06-16 05:00:21 +09:00
Pedro J. Estébanez
1fcb2a1a00
Handle tmp files properly on Android export
2016-06-15 14:58:01 +02:00
Andreas Haas
0e8b860048
Windows: Support gamepad vibration using XInput.
2016-06-15 14:40:57 +02:00
Rémi Verschelde
01bb8787c9
Merge pull request #5212 from vnen/fix-emscripten-build
...
Fix javascript build in Windows
2016-06-15 13:23:00 +02:00
Wilhem Barbier
f665200df7
Add joystick vibration support on Linux ( #5043 )
2016-06-15 07:25:35 +02:00
George Marques
c48ffed87a
Fix javascript build in Windows
...
Fix #3438
2016-06-14 11:27:16 -03:00
Juan Linietsky
7526b14afd
Merge pull request #5173 from Hinsbart/fix_xrandr
...
x11: fix XRandr GetMonitors
2016-06-13 15:45:42 -03:00
Juan Linietsky
5f674bdca1
Merge pull request #5179 from RandomShaper/better-android-export
...
Enhanced Android export
2016-06-13 15:06:37 -03:00
Pedro J. Estébanez
e1948d520a
Zip-align exported APK
2016-06-13 00:19:45 +02:00
Andreas Haas
eaa34f2123
x11: fix XRandr GetMonitors
2016-06-12 15:29:02 +02:00
Juan Linietsky
3b2c96139b
Merge pull request #4905 from Hinsbart/x11_dpi
...
x11: Implemented dpi detection
2016-06-11 17:52:10 -03:00
Juan Linietsky
fc7adf0b4c
property output unix seconds since epoch in windows get_system_time_secs, fixes #5155
2016-06-11 14:10:11 -03:00
Pedro J. Estébanez
1b189ad943
Fix typo
2016-06-11 13:11:42 +02:00
Pedro J. Estébanez
bb1b51f470
Keep certain assets uncompressed on Android export
2016-06-11 13:08:42 +02:00
volzhs
4f64935ab6
fix android support screen property for large screen
2016-06-10 14:09:33 +09:00
Juan Linietsky
94a6ff3d7a
-make freetype build for all platforms the same, default as builtin except on x11.
...
closes #5119
2016-06-09 21:28:07 -03:00
Andreas Haas
18c941bbec
x11: Implemented dpi detection
...
depends on XRandR.
Had to dynamically load `XRRGetMonitors` as Ubuntu 12.04 doesn't have it.
Also removed libudev from travis install list.
2016-06-09 18:54:06 +02:00
Juan Linietsky
3d95c82669
Merge pull request #5090 from akien-mga/glew-1.13.0
...
Upgrade embedded GLEW to version 1.13.0
2016-06-08 07:54:31 -03:00
Juan Linietsky
d61b91cbe0
-Heavily improved editor startup and exit performance
2016-06-07 22:10:09 -03:00
Rémi Verschelde
768e925271
GLEW: Define static + enabled and includes via SCons
...
This allows us not to have to hack our definitions in the upstream files,
making it easier to upgrade to newer versions in the future.
For the include paths to work, the headers are moved to a GL subfolder to
match their upstream location.
2016-06-08 00:16:27 +02:00
Rémi Verschelde
4c658dc523
Haiku: Do not define GLEW_ENABLED to undefine it later
...
Partial revert of f61eb5fd8e
.
2016-06-08 00:10:30 +02:00
J08nY
3cfa920982
Windows: Hide mouse on MOUSE_MODE_CAPTURED
...
Fixes #5051
2016-06-07 12:57:01 +02:00
Rémi Verschelde
aed5474238
Merge pull request #4729 from volzhs/android-23
...
Supporting Android API 23 (Android 6.0)
2016-06-07 09:45:24 +02:00
Juan Linietsky
be830d10c2
Merge pull request #5026 from Geequlim/patch9frame-extension
...
Enhanced Patch9Frame
2016-06-06 20:15:33 -03:00
Juan Linietsky
a1b696aa56
Merge pull request #5067 from Hinsbart/x11_vsync
...
x11: fix vsync support
2016-06-06 19:40:28 -03:00
Andreas Haas
5cd7611a9a
x11: fix vsync support
2016-06-07 00:19:01 +02:00
J08nY
3fb3b7c1f7
Somewhat fixed Directory::get_space_left() return values.
2016-06-06 08:14:22 +02:00
Ariel Manzur
942de803f9
temporary fix for vsync call on x11
2016-06-05 22:25:01 -03:00
Juan Linietsky
2420e46b44
vsync support
...
-works on windows
-may not work on X11, if so please fix
-OSX does not seem to support disabling vsync
2016-06-05 19:14:33 -03:00
Juan Linietsky
007efb6a20
-customizable shortcuts in editor
...
-editor settings now save to .tres instead of .xml
-buttons can now hold a shortcut
2016-06-04 21:31:47 -03:00
Rémi Verschelde
2884faf55b
Merge pull request #4999 from volzhs/fix-project-path
...
change invalid characters when get user data dir on Windows & Unix
2016-06-04 21:37:47 +02:00
Geequlim
fdf914e53e
Add texture region support for stylebox render
2016-06-05 00:45:53 +08:00
marcelofg55
76ab7d3886
Right click->Quit on the godot icon will now close the application on OSX.
...
Fixed get_window_position that missed a return on OSX.
2016-06-04 12:35:00 -03:00
marcelofg55
4e0f2389c3
Merge remote-tracking branch 'upstream/master'
2016-06-02 18:56:28 -03:00
volzhs
9073dc9963
change invalid characters when get user data dir on Windows & Unix
...
Can't create user data folder when project name has ``\ / : * ? " < > |`` characters on OS_Windows & OS_Unix.
So, change it to ``-`` to be able to make folder.
fixes #4928 and it's altanative to #4986 .
2016-06-03 03:39:37 +09:00
George Marques
408c26ce0b
Remove Make-related flags from Android build
...
They were wrongly placed, creating a file named "-fpic" instead of
applying "-fpic" to the build. This file was in .gitignore, which made it
less noticiable.
This also adds build.gradle to .gitignore.
2016-06-01 21:14:57 -03:00
Juan Linietsky
4ec2b1434f
removed dependency on shcore.dll to get DPI
...
fixes #4973
2016-06-01 12:43:52 -03:00
Juan Linietsky
344a39dafd
Implemented file drop support in OSX
2016-05-31 01:27:48 -03:00
marcelofg55
bb223869e0
Key modifiers (Ctrl, Alt, Meta and Shift) may be used as Input keys now on OSX
2016-05-31 00:02:14 -03:00
Juan Linietsky
cf3575e0b4
Merge branch 'master' of https://github.com/godotengine/godot
2016-05-30 00:29:36 -03:00
Juan Linietsky
9b1f8230ec
-Some fixes to OSX retina scaling for window functions
...
-Implemented HiDPI detection and support for Godot Editor!
2016-05-30 00:28:29 -03:00
Rémi Verschelde
e6e878e139
Icon: Remove more grey capsules behind official logo
2016-05-30 00:41:42 +02:00
Juan Linietsky
c7d24b7814
hidpi for now not available on mingw, sorry
2016-05-29 14:34:06 -03:00
Juan Linietsky
4f100f92d8
DPI Detection support
...
Windows only for now.
Many builds may break (older visual studio, mingw32)
2016-05-29 13:40:21 -03:00
Rémi Verschelde
d31696e3db
Merge pull request #4874 from Hinsbart/x11_dragndrop
...
x11: Add support for filesystem drag & drop using xdnd
2016-05-29 18:40:27 +02:00
Rémi Verschelde
96bdab6edf
Merge pull request #4845 from vnen/pr-magnetometer
...
Add magnetometer sensor support for Android
2016-05-29 18:37:33 +02:00
Rémi Verschelde
7d262947af
Merge pull request #4810 from marcelofg55/master
...
Added application/fat_bits property for EditorExportPlatformOSX::Edit…
2016-05-29 18:28:10 +02:00
Andreas Haas
2c9b28df13
xdnd: can handle more than 3 different target types
...
Now dropping also works with Nemo and PCManFM(gtk)
2016-05-29 17:40:08 +02:00
Juan Linietsky
65615c0353
fix freetype paths on osx and mingw
2016-05-29 12:26:15 -03:00
Juan Linietsky
3e8eb396d7
Finalized DynamicFont implementation
...
-DynamicFont uses Freetype by default
-Editor fonts are now scalable thanks to this
-Cleaned up documentation browser and added fonts for this
2016-05-29 11:37:52 -03:00
Andreas Haas
ae0a59731e
x11: Add support for filesystem drag & drop using xdnd
2016-05-28 21:35:42 +02:00
fluffrabbit
4877b714b3
Add magnetometer sensor support for Android
2016-05-27 14:36:55 -03:00
Juan Linietsky
8be2fabbe5
Changed import workflow
...
-Rearrange favorites in fs dock with drag and drop
-Removed import -> sub-scene, moved to scenetree contextual menu
-Removed import -> re-import , moved and integrated to FS dock
-Added ability in FS dock to re-import more than one resource
simultaneously
-Added ability to drag from native filesystem explorer to Godot, only
works on Windows though
-Removed scene reimport merge options, never worked well. Eventually
merging materials should be re-added
-Added ability to set custom root node type when importing scenes
-Re-Import is now automatic, can be configured back to manual in editor
settings
-Added resource previews in property list for many resource types
2016-05-27 14:19:11 -03:00
marcelofg55
ba0fbe4f79
Added application/fat_bits property for EditorExportPlatformOSX::EditorExportPlatformOSX
2016-05-25 15:17:28 -03:00
volzhs
e5d16eca46
Add comments for NotificationCompat to support API < 16
2016-05-25 22:19:37 +09:00
volzhs
ff67c256f5
fix compatibility for Android API 14 with supporting API 23
...
using ``NotificationCompat`` in ``support-v4`` library will increase APK filesize a little bit, but it guarantees to run OK with API 4+
tested with API 19 and 23 devices
2016-05-24 11:22:35 +09:00
volzhs
5eb14d3af0
fix unexpected char: '\' error on windows
...
error occurred when register additional directory for android module on windows.
### config.py ###
```
def can_build(plat):
return plat=="android"
def configure(env):
if (env['platform'] == 'android'):
env.android_add_res_dir("android/res")
```
2016-05-24 05:25:22 +09:00
Hubert Jarosz
33403d91f7
remove trailing whitespace
2016-05-21 15:29:25 +02:00
marcelofg55
eeb83982e2
Added 'fat' option for bits param on scons for osx, this will produce a fat binary that contains both 32 bits and 64 bits binaries
2016-05-20 17:31:30 -03:00
volzhs
160713d4d3
Supporting Android API 23 (Android 6.0)
...
If we update build gradle to use ``compileSdkVersion 23``,
``org.apache.http`` package causes error. (issue #4711 )
We need to use ``useLibrary 'org.apache.http.legacy'`` to solve this problem.
To use ``useLibrary``, we need to use latest gradle also.
And now, we faced another problem with ``APK Expansion`` java sources.
```
/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java
137 : mCurrentNotification.setLatestEventInfo(mContext, mCurrentTitle, mCurrentText, mContentIntent); // causes error
```
So, some of APK Expansion java sources are updated by referencing commits from https://github.com/danikula/Google-Play-Expansion-File
And dropped V3CustomNotification.java which was for android 3.0, since godot supports android 14 (4.0) above officially.
Unfortunately, another problem, The 'MissingTranslation' error was occurred.
So, build.gradle is updated to use ``disable 'MissingTranslation'``
Additionally, I updated ``buildToolsVersion``, ``targetSdkVersion`` to latest version.
I tested APK Expansion funtionality on Android 6.0 (Nexus 9, Nexus 6p) and Android 4.4 (Galaxy Note 2) with Google Developer console.
2016-05-20 22:57:49 +09:00
Rémi Verschelde
5e0f0a962a
Android buildsystem: Drop obsolete NDK_TOOLCHAIN argument
...
It was a duplicate of NDK_TARGET, and not used for anything.
2016-05-19 10:44:18 +02:00
marcelofg55
b697de92ef
OS.get_screen_size now returns the correct value on OSX
2016-05-11 11:44:10 -03:00
Mattias Cibien
4ee2999777
Working even when re-entering window.
2016-05-09 15:46:05 +02:00
Mattias Cibien
0b64b97d41
Cursor hides only in client area
...
At the moment is however restored when going out and then in again.
2016-05-09 15:18:08 +02:00
George Marques
9424c6c58f
Fix windows 64-bits build.
...
The change in `tools/doc/doc_data.cpp` is needed because the MSVC
compiler does not support variable length arrays.
Fix #4113
2016-05-03 16:35:36 -03:00
Mattias Cibien
8fb7280f39
Fixed behavior of OS.set_window_resizable
...
Should fix #4428 .
* Minimize button is not hidden anymore
2016-05-03 15:58:05 +02:00
Rémi Verschelde
f48d385644
Merge pull request #4274 from Griefchief/master
...
Fixes 64 bit MSVC builds, disables bits parameter
2016-05-02 17:45:21 +02:00
Rémi Verschelde
94274b9ab5
OSX: Fix lib suffix for Android lib ( #4499 )
...
Fixes #1452 .
2016-05-01 11:38:15 +02:00
George Marques
2cd8e86aa0
Implement OS.get_process_ID for Windows
...
Based on code by @ratsdiov.
Closes #1733
2016-04-29 13:57:57 -03:00
Ariel Manzur
6aae63fce2
disabled appirater
2016-04-29 13:03:46 -03:00
Ariel Manzur
6962fd91c6
rate url on iOS and properly launching from .app on OSX
2016-04-29 10:54:25 -03:00
Ariel Manzur
de3ed61fc5
I think this is ok, "resizable" property might change
2016-04-29 10:54:25 -03:00
Ariel Manzur
b50c00ff90
merged iphoen changes
2016-04-29 10:50:56 -03:00
eska
ab4caa7953
Move export GUI debug toggle to export settings window
2016-04-28 16:13:26 +02:00
Rémi Verschelde
ec606f94dc
Drop NACL platform
...
It's no longer maintained and Chrome-specific, so it's not a viable solution
to deploy Godot games in browsers. The current prefered alternative is asm.js
(platform/javascript), and we're looking forward to WebAssembly.
2016-04-25 19:08:22 +02:00
Rémi Verschelde
f368d380e7
Drop obsolete WIP for Flash platform
...
It was apparently never fully functional and has not been maintained.
Flash itself is nowadays clearly a deprecated technology, so there will
not be further work on it. platform/javascript and the upcoming
WebAssembly technologies should have a brighter future.
2016-04-25 19:08:22 +02:00
Rémi Verschelde
016be49e08
Merge pull request #4377 from eska014/web-keys
...
Fix key events in web export
2016-04-19 21:10:00 +02:00
eska
45b90f16ca
Add fallback to legacy KeyboardEvent in web export
...
Fallback to KeyboardEvent property `charCode` is absence of both `key`
and `char` for retrieval of unicode value.
2016-04-19 17:03:13 +02:00
eska
0e9eefb7d4
Reimplement key input events in Emscripten export
...
Scancodes work, but unicode values are now completely broken in some
browser/OS combinations.
2016-04-19 14:02:26 +02:00
volzhs
e94e710893
remove unused resources and add korean locale for android
...
- remove unused resources in platform/android/java/res/values/strings.xml
- add korean language resource for apk expansion download screen
2016-04-19 11:10:55 +09:00
Ignacio Etcheverry
5907a007dc
x11: Flush the X output buffer after changing mouse mode
2016-04-12 16:20:28 +02:00
Aleksandar Danilovic
7762e1afe6
Fixes 64 bit MSVC builds, disables bits parameter
...
Also Enables automatic detection of architecture for the MSVC compilers.
Builds without assembly optimisations for x64
Closes issue #3098
Signed-off-by: Aleksandar Danilovic <greatgames.alexandar@gmail.com>
2016-04-10 03:36:58 +02:00
MSC
391095e0ef
memdelete 'joy_thread' + 'joy_mutex' on ::~joystick_linux()
2016-04-03 19:24:39 +02:00
Rémi Verschelde
0a5472e697
Remove trailing spaces
2016-04-02 20:26:12 +02:00
Rémi Verschelde
a895e2e372
Merge pull request #4105 from akien-mga/pr-android-shutdown-adb
...
Expose android/shutdown_adb_on_exit parameter
2016-03-20 18:34:05 +01:00
Rémi Verschelde
c584940387
Expose android/shutdown_adb_on_exit parameter and default to true
...
It was added in 30d0ca9
for the Steam build but only enabled
when parsing a ._sc_ file that would define it.
It is now available for all users to toggle, in and outside of Steam.
Fixes #4073 .
2016-03-20 16:55:54 +01:00
blubee
a0fb5b5f95
Add support for gnu-libstc++-4.9 needed by recent NDK versions
...
The 4.9 version is the default one, people can still build using 4.8
with older NDK versions by setting the (optional) NDK_TARGET
and NDK_TARGET_X86 environment variables.
2016-03-20 20:29:37 +08:00
sanikoyes
9e026fecef
Add -r flag to adb install for keep app user data
2016-03-18 18:11:55 +08:00
Kyle Luce
feef563f3f
Fixes the month consistency issue in enums and get_date etc
...
- Also updated the docs to reflect this.
- Added some vim temp files to gitignore
- Changed NaCL to be consistent with the other OS_Unix::get_date implementation
(added 1 to month to map to 1-12)
Ticket:
https://github.com/godotengine/godot/issues/4025
2016-03-13 15:27:39 -07:00
Saracen
6eb4812317
Borderless window support for the Win32 build. Default window position is now also centred.
2016-03-12 16:38:12 +00:00
Hubert Jarosz
4b14c18d13
fix possible crash in platform/x11/joystick_linux.cpp
...
ev may be tainted and out of MAX_KEY range,
which will cause joy->key_map[ev.code] to crash
2016-03-09 00:16:56 +01:00
Hubert Jarosz
4a4f247914
remove trailing whitespace
2016-03-09 00:00:52 +01:00
hondres
02eddbf7da
osx: fix inverted horizontal scrolling
2016-03-07 11:24:27 +01:00
Rémi Verschelde
21335e502c
Merge pull request #3893 from leezh/diraccess_fix
...
Added relative paths for DirAccess::remove()
2016-03-05 13:13:08 +01:00
hondres
352db6b17e
html5: workaround for echo key events.
2016-03-04 20:26:39 +01:00
volzhs
d6cc887627
fix gradle build on windows
2016-03-02 12:15:39 +09:00
Zher Huei Lee
d7052ddba3
Added relative paths for DirAccess::remove()
...
Follows similar behaviour to DirAccess::rename()
2016-03-01 10:40:31 +00:00
Ariel Manzur
30d0ca9766
added [presets] to ._sc_ and "android/shutdown_adb_on_exit" to editor_settings
2016-02-27 12:11:40 -03:00
Ariel Manzur
89b4c76e0c
theora on server build
2016-02-25 09:44:21 -03:00
hinsbart
1e54fd142b
x11: fix joysticks not recognizing some buttons
...
dpad on x360 pads with kernel < 4.3 is working now
2016-02-24 12:18:30 +01:00
Aren Villanueva
7b25641813
Reject any native video player calls on iOS that point to files within .pck archives.
...
Fix the paths for both res:// and user:// specified video files.
2016-02-19 16:05:49 +11:00
Rémi Verschelde
130f8fa193
Rename KEY_KP_SUBSTRACT to KEY_KP_SUBTRACT
...
The former name was incorrect in English, though for us latin lovers it's an understandable mistake.
Second part of and closes #3626 .
2016-02-17 23:01:27 +01:00
Rémi Verschelde
3cf16adf3c
Merge pull request #3715 from Hinsbart/libudev_include
...
X11: include libudev only on udev builds
2016-02-15 18:56:38 +01:00
hondres
3065187300
include libudev only on udev builds
2016-02-15 15:09:48 +01:00
Ariel Manzur
ad405ade17
adding xcode project template
2016-02-14 18:18:47 -03:00
hondres
b350ece864
x11: make dependancy on libudev optional
2016-02-14 15:13:11 +01:00
Hondres
1fb9cc377f
win: fix xinput triggers not resetting correctly
2016-02-12 15:06:50 +01:00
hondres
274f57feea
fix platform bb10 compilation
2016-02-11 02:39:06 +01:00
punto-
b6b33e8886
Merge pull request #3428 from Hinsbart/android-gamepad
...
support gamepad remapping on android
2016-02-08 20:09:02 -03:00
Franco Eusébio Garcia
68e2cd8caa
Added constant to retrieve Windows' Documents path
...
According to MSDN's
documentation (https://msdn.microsoft.com/en-us/library/windows/desktop/bb762181(v=vs.85).aspx ),
CSIDL_PERSONAL represents the default path to Windows Document's folder:
"Previous to Version 6.0. The file system directory used to physically
store a user's common repository of documents. A typical path is
C:\Documents and Settings\username\My Documents. This should be
distinguished from the virtual My Documents folder in the namespace. To
access that virtual folder, use SHGetFolderLocation, which returns the
ITEMIDLIST for the virtual location, or refer to the technique described
in Managing the File System."
2016-02-07 15:54:25 -02:00
punto-
63fc7ef798
Merge pull request #3615 from Hinsbart/joy_check_fix
...
x11: more verbose checking for joystick capabilities
2016-02-07 00:49:54 -03:00
hondres
fef92c0fab
x11: more verbose checking for joystick capabilities
2016-02-07 00:17:16 +01:00
Juan Linietsky
9010a25c01
added option to link libstdc++ statically
2016-02-04 20:47:19 -03:00
Juan Linietsky
80e88c6a50
Removed PE-bliss, win32 binares so far remain without icon, had many issues with it:
...
-corrupted 32 binaries without reason
-does not support upx binaries
-forces dependency o libstdc++
2016-02-04 20:03:03 -03:00
Juan Linietsky
d826b1db2a
-removed buggy flags, makes mingw+32 bits+optimized work again,
2016-02-04 19:38:16 -03:00
hondres
df4faf8f33
support horizontal mouse wheel, use in text editor
2016-02-04 17:16:22 +01:00
Rémi Verschelde
cefca4429c
Merge pull request #3575 from Hinsbart/_net_wm_name
...
x11: set _net_wm_name property
2016-02-04 07:19:52 +01:00
hondres
61c1b6f60e
x11: set _net_wm_name property
2016-02-04 00:39:53 +01:00
Rémi Verschelde
c0aade4ba4
Merge pull request #3493 from Hinsbart/wm_class
...
x11: use different strings for WM_CLASS depending on context
2016-02-03 11:30:22 +01:00
Rémi Verschelde
fc65a57ff5
Merge pull request #3538 from Hinsbart/temp
...
remove pc_joystick_map.h
2016-02-03 11:18:43 +01:00
hondres
f7b1ab843c
x11: fix non-gamepad devices being detected as joysticks
2016-02-02 23:23:20 +01:00
hondres
f4fa74fe28
remove pc_joystick_map.h
2016-02-01 14:28:53 +01:00
hondres
2809b31f8c
close file descriptor if ioctls failed
2016-02-01 13:39:50 +01:00
punto-
987bfb4b5e
Update detect.py
...
removed -g from linkflags
2016-01-29 17:33:45 -03:00
Ariel Manzur
593b01b709
audio crash
2016-01-29 07:18:53 -03:00
hondres
11e4c128ac
x11: use different strings for WM_CLASS depending on context
2016-01-27 21:53:37 +01:00
Hondres
e7b6e3f20b
use fallback mapping from list
2016-01-27 12:18:34 +01:00
punto-
93bef9b9b1
Merge pull request #3471 from Hinsbart/remove_libevdev
...
remove dependancy on libevdev
2016-01-27 04:32:27 -03:00
George Marques
82b24bea6f
Revert "make msvc 64bits build again, fixes #3098 "
...
This reverts commit b21ce6cecb
.
2016-01-26 22:26:04 -02:00
hondres
29353808f0
remove dependancy on libevdev
2016-01-26 23:04:57 +01:00
Juan Linietsky
16b8b97472
Combies driver split and spawn fix, closes #3265
2016-01-25 00:25:32 -03:00
Juan Linietsky
caddcca4f4
-Many fixes to windows build system with Mingw on Windows. Fixes #2690
2016-01-25 00:21:04 -03:00
George Marques
f4a39692b9
Change default window size for desktop
...
Fix #3149
2016-01-24 17:52:33 -02:00
hondres
285bcac224
can use fallback mapping on all platforms
2016-01-24 18:01:37 +01:00
hondres
e7c920fdba
support gamepad remapping on android
2016-01-24 05:29:09 +01:00
hondres
1ad6ca0a81
add mappings and increase max number of buttons
2016-01-22 22:56:05 +01:00
Hinsbart
77858b66d3
html5 gamepad support
2016-01-21 02:30:24 +01:00
Juan Linietsky
e7eb332799
fix export bug
2016-01-20 07:43:05 -03:00
Rémi Verschelde
55ab7d1d1c
Merge pull request #3392 from Hinsbart/html5-gamepad
...
fix string conversion in javascript export
2016-01-20 10:08:13 +01:00
hondres
c4578453fa
fix string conversion in javascript export
2016-01-20 08:59:14 +01:00
Rémi Verschelde
f3f74cf9ae
Merge pull request #3391 from eska014/web-export-page
...
Overhaul web export page
2016-01-20 07:57:07 +01:00
Juan Linietsky
c9580965ea
-Remote deploy now uses FS over USB on Android, super fast!
2016-01-20 00:29:34 -03:00
eska
696643ce18
Revamp web export page
2016-01-20 03:41:39 +01:00
volzhs
c937fd5be6
missed rename "keep_screen_on" for ios
2016-01-19 01:58:51 +09:00
Rémi Verschelde
1469508174
Merge pull request #3364 from Max-Might/master
...
Haiku: fix build and add resource file
2016-01-18 14:51:01 +01:00
Rémi Verschelde
7e20c86ac7
Merge pull request #3360 from volzhs/keep-screen-on-5
...
Add ability to set "keep screen on" for android & iOS. fixes #2428
2016-01-18 14:44:49 +01:00
mrezai
48bf9d3139
Fix 32 bit windows export crash
2016-01-16 19:22:40 +03:30
volzhs
182d2e5dc9
Add ability to set "keep screen on" for iOS
2016-01-16 20:59:09 +09:00
volzhs
fb2bf78591
Add ability to set "keep screen on" for android
2016-01-16 20:57:34 +09:00
Kostadin Damyanov
19753233ad
Haiku: add resource file
2016-01-16 07:34:00 +02:00
Kostadin Damyanov
7998197ff1
Merge remote-tracking branch 'upstream/master'
2016-01-15 22:43:54 +02:00
punto-
7393e40452
Merge pull request #3272 from Hinsbart/joy-binding
...
Add some joystick functions to input. Enables manipulation of mapping…
2016-01-12 03:59:19 -03:00
mrezai
4cb14ae7d6
Fix crash on android 6.0.1, fixes #3321
2016-01-12 09:57:56 +03:30
Rémi Verschelde
1f1c3038c2
Update copyright in remaining files + prints in the UI
2016-01-11 21:34:22 +01:00
Rémi Verschelde
7f82c8d7c5
Merge pull request #3230 from touilleMan/issue-55
...
Remove unnecessary null pointer checks
2016-01-11 12:00:44 +01:00
Rémi Verschelde
4c090313bc
Merge pull request #3304 from eska014/fbsd-alsa
...
Give FreeBSD a chance to enable ALSA
2016-01-11 08:50:15 +01:00
Juan Linietsky
b21ce6cecb
make msvc 64bits build again, fixes #3098
...
disabled assembly for msvc 64 bits, as it is not supported
2016-01-10 21:26:34 -03:00
Juan Linietsky
a120c66f98
-Removed OS.get_system_time_msec(), this is undoable on Windows and also unusable from GDscript due to precision.
...
-Added, instead an OS.get_system_time_secs(), which is 32 bits friendly, fixes #3143
2016-01-10 18:24:55 -03:00
eska
56e65f9e29
Enable ALSA driver in non-linux X11 when available
2016-01-10 17:52:15 +01:00
Juan Linietsky
c9852501a4
Fix bug related to EOF in Android FileAccess
2016-01-09 20:50:45 -03:00
eska
a6c1a5c6d0
Fix pthread renaming in Open/FreeBSD
2016-01-09 15:56:31 +01:00
mrezai
50cbe736de
Fix maven repositories bug
2016-01-09 16:51:22 +03:30
Juan Linietsky
6a29edf048
removed unnecesary comma in gradle template
2016-01-08 17:55:13 -03:00
Juan Linietsky
40ba22631b
Renamed godot domain from com.android.godot (which was incorrect) to org.godotengine.godot
2016-01-08 17:53:00 -03:00
Juan Linietsky
401622cc22
-Removed ANT build system for Android, as it was deprecated by Google
...
-Added new Gradle build system, as it is the required build system
2016-01-08 13:36:44 -03:00
hondres
c632c13c66
Add some joystick functions to input. Enables manipulation of mappings at runtime
2016-01-08 00:40:41 +01:00
Peace Sells
9f00d9e44b
Better fix for visual studio project generation.
2016-01-06 22:47:43 -07:00
Rémi Verschelde
a98aa0bbbe
Make joydev build using udev and evdev opt-out but blocking (linux)
...
It is enabled by default, users have to specifically ask for it if they don't want gamepad support. If libudev or libevdev are missing, the build aborts and tells the user the reason and that they can disable gamepad support with the "gamepad=no" option.
2016-01-06 19:21:37 +01:00
hondres
c0e4d8fbfd
fix x11 crash on exit
2016-01-05 23:35:54 +01:00
hondres
3f64fd64eb
define XUSER_MAX_COUNT if not present
2016-01-05 01:16:10 +01:00
Emmanuel Leblond
cabf923484
Remove unnecessary null pointer checks
2016-01-04 11:46:16 +01:00
Juan Linietsky
e0eff65fc0
change android install location to automatic, closes #1997
2016-01-03 20:31:37 -03:00
Juan Linietsky
908f75c23f
having active items is pointless in input map
2016-01-03 18:52:42 -03:00
hondres
17d664cf1d
send axis events only once per frame on linux
2016-01-03 02:24:43 +01:00
hondres
c60e1648ba
make num_buttons local, no need to keep in joystick struct
2016-01-02 03:52:44 +01:00
George Marques
5be9ff7b67
Update copyright to 2016 in headers
2016-01-01 11:50:53 -02:00
Juan Linietsky
586e482a98
-Fix parsing of comments in VariantParser, fixes #3175
2015-12-31 10:25:21 -03:00
Rémi Verschelde
46eebac3ae
Remove bogus argument in sample_get_description
...
Copy-paste mistake from the setter most likely.
2015-12-28 01:18:37 +01:00
Kostadin Damyanov
62574759ab
Haiku: fix build
2015-12-26 18:54:05 +02:00
Hondres
d8143eb3fb
Fix joystick hotplugging on windows, using right indices now
2015-12-26 13:14:13 +01:00
Ariel Manzur
6cfede11e3
removed -ffast-math on ios, compiler bug?
2015-12-23 11:19:12 -03:00
Ariel Manzur
02d6669a38
threads
2015-12-22 10:08:20 -03:00
Juan Linietsky
50e9839089
Merge pull request #3113 from Hinsbart/joy_fix
...
Check pkg-config for libudev and enable gamepad code only if found.
2015-12-22 09:29:38 -03:00
Ariel Manzur
8433221629
missing?
2015-12-22 09:26:54 -03:00
hondres
541c9039c5
Check pkg-config for libudev and enable gamepad code only if found. Linux only for now
2015-12-21 22:39:03 +01:00
Juan Linietsky
46dee92c8e
-fixed build system to use pkg-config for evdev
2015-12-21 10:37:26 -03:00
Ariel Manzur
020700af1d
windows resource version thing
2015-12-20 13:43:08 -03:00
Ariel Manzur
bec1e003e7
this failed on mingw on linux (but not on msvc) with 2 problems:
...
1) it didn't print the error to the console, only this:
build_res_file(["platform/windows/godot_res.windows.tools.32.o"], ["platform/windows/godot_res.rc"])
scons: *** [platform/windows/godot_res.windows.tools.32.o] Error 1
I had to print the actual command and run it on a console to see the error. The builder should be able to print the command it's running and the error, like it does with compiler invocations, etc.
2) The actual error was a syntax error on line 11 of godot_res.rc. I looked up "FILEVERSION" and "PRODUCTVERSION" (here https://msdn.microsoft.com/en-us/library/windows/desktop/aa381058(v=vs.85).aspx ), it says they take 4 numbers as parameters, so I added those 0s, but I'm not sure if they're in the right order.
@masoudbh3 can you check it out? thanks
It builds on msvc just fine with (and without) these changes.
2015-12-20 11:50:16 -03:00
punto-
33e5c3181d
Merge pull request #3101 from Hinsbart/remapping-new
...
Better gamepad support
2015-12-20 11:08:04 -03:00
hondres
87dab29f4b
Use tabs instead of spaces for new gamepad code
2015-12-18 19:15:32 +01:00
Ariel Manzur
4a7e5fafb1
thread rename for ios and osx (if called from the thread to be renamed)
2015-12-18 02:58:30 -03:00
hondres
af633c7941
Better gamepad support
2015-12-18 06:12:53 +01:00
Ariel Manzur
27e4c87869
no need to revert this actually
2015-12-14 11:10:16 -03:00
santiagopf
a9795d5826
Merge branch 'master' of https://github.com/godotengine/godot
2015-12-14 10:58:26 -03:00
santiagopf
c8077de714
utf stuff on osx
2015-12-13 22:21:49 -03:00
Juan Linietsky
95a469ad28
added binary API to StreamPeer, fixes #2863
2015-12-13 12:53:29 -03:00
santiagopf
01f063e2fe
reverted mouse stuff
...
t Please enter the commit message for your changes. Lines starting
2015-12-13 01:28:42 -03:00
santiagopf
d6f9426748
isim
2015-12-12 19:13:40 -03:00
Juan Linietsky
890b462ffb
added rotation and scale support to gui controls
2015-12-12 13:54:26 -03:00
Juan Linietsky
cc7880fba5
-added windowed mode with -w, fixes #3020
...
-changed default windowed resolution to 1280x720
2015-12-12 12:06:53 -03:00
punto-
25d19e08bb
Merge pull request #590 from marynate/PR-fix-ios-release-event
...
Fixed ios release event not been dispatched when app entering background
2015-12-11 21:30:02 -03:00
Juan Linietsky
708ff381d6
changed a bit to use system()
2015-12-08 20:36:48 -03:00
Juan Linietsky
78b5404434
improve detection of linux, fixes #3201
2015-12-08 20:35:40 -03:00
Juan Linietsky
ac414c5581
Merge pull request #2849 from a12n/compobsd2
...
Compile on OpenBSD
2015-12-08 17:16:45 -03:00
Juan Linietsky
eff81965af
Merge pull request #2956 from est31/add_system_wide_export_path
...
Add way to look for templates at system wide level too
2015-12-08 17:04:24 -03:00
Juan Linietsky
7ba484bc74
some fixes
...
-fix compilation on tres/tscn on MSVC
-fixed theora playback performance, closes #3004
2015-12-06 20:22:45 -03:00
Juan Linietsky
4b1f0afb01
-several fixes to Android to work better on Tegra 3/4 devices, uses 16 bits FBOs so all 2D shader effects should now work in every single Android device.
2015-12-02 11:15:48 -03:00
Rémi Verschelde
e4e7e8f396
Merge pull request #2963 from akien-mga/pr-opus-arm-opt
...
Enable opus ARM optimisations only on ARM
2015-12-01 10:18:41 +01:00
Rémi Verschelde
99e7641f3d
Enable opus ARM optimisations only on ARM
...
i.e. do not enable it for x86.
Fixes #2962 .
2015-12-01 09:34:51 +01:00
est31
15f6d3cebf
Add way to look for templates at system wide level too
...
Useful for everybody wanting to package godot.
Fixes #1026 .
-> Retain the old behaviour: path in error msg only when exporting.
-> User templates override system templates
2015-11-30 01:36:08 +01:00
koalefant
bd396c5cfa
Enabled debug symbols for x11 when using platform=release_debug and debug_release=yes together
2015-11-29 20:56:27 +01:00
Rémi Verschelde
55d56d9b7c
Replace hardcoded references to Okam Studio by Godot Engine
...
Since the engine development is now independent.
Fixes #2836 .
2015-11-27 18:54:09 +01:00
Juan Linietsky
b987d2113b
0theora compilation fixes
2015-11-25 00:28:03 -03:00
Juan Linietsky
082e3fbb29
Merge branch 'master' of https://github.com/okamstudio/godot
...
Conflicts:
main/main.cpp
2015-11-24 10:52:41 -03:00
Juan Linietsky
ccd40f76e8
-work in progress resourceparser and .tscn parser. Still non-functional
...
-fixed theora so it can compile theoralib but not theora
-fixed generation of windows icon in .rc, which didn't previously work in 32 bits
2015-11-24 10:42:05 -03:00
mikica1986vee
d6b317a2c1
tegra 3 fix
2015-11-21 23:21:36 +01:00
Anton Yabchinskiy
b14c90801f
Disable X11 joystick functions also for OpenBSD
2015-11-20 23:36:34 +03:00
Anton Yabchinskiy
523e64d30b
Include string.h for memset() on OpenBSD
2015-11-20 23:36:14 +03:00
Anton Yabchinskiy
52f1bab6d5
Include stdlib.h for alloca() on OpenBSD
2015-11-20 23:35:53 +03:00
Anton Yabchinskiy
0931eed7be
Enable ALSA only for Linux
2015-11-20 23:35:19 +03:00
Juan Linietsky
2769da7744
compile fixes
2015-11-19 20:24:43 -03:00
Juan Linietsky
dd09215c90
Revert "libao audio driver"
2015-11-19 20:05:26 -03:00
Juan Linietsky
6127f17368
Merge pull request #2756 from trond/bugfix_udp
...
UDP fixes
2015-11-19 19:33:04 -03:00
Juan Linietsky
43ce972ddb
Merge pull request #903 from a12n/libao
...
libao audio driver
2015-11-19 19:31:56 -03:00
Trond Abusdal
a8a2458f0b
Fixed mistake where available buffer size would not be updated for each recvfrom-call in PacketPeerUDPWinsockPposix.
2015-11-19 19:06:01 +01:00
ZuBsPaCe
ce3216429e
Added missing \n in script error output.
2015-11-19 15:35:18 +01:00
ZuBsPaCe
a5683def19
Nice error output padding. Code location behind " At: " is now aligned with the error message above. Also removed the dot after the file location.
2015-11-19 15:19:25 +01:00
ZuBsPaCe
42beb83178
Set console background color on windows in SetConsoleTextAttribute, otherwise text background will be black, which looks strange if the terminal color is not black.
2015-11-19 15:19:22 +01:00
ZuBsPaCe
a89c861931
Set output color of ERR_SCRIPT messages to purple. Same as on linux.
2015-11-19 15:19:20 +01:00
ZuBsPaCe
9f9452d023
Removed ANSI error codes from windows terminal error output. Windows does not support them.
...
See: http://stackoverflow.com/questions/16755142/how-to-make-win32-console-recognize-ansi-vt100-escape-sequences
See: http://stackoverflow.com/questions/22777142/is-there-a-way-to-make-windows-output-ansi-escape-sequences?lq=1
2015-11-19 15:19:18 +01:00
ZuBsPaCe
e23734363e
Inconsistent code formatting in print_error (Newlines and spaces)
2015-11-19 15:19:16 +01:00
Juan Linietsky
d3eb9e8c54
-remove Vector2.atan2() replaced by Vector2.angle(), fixes #2260
2015-11-19 10:41:20 -03:00
Juan Linietsky
0168947084
Merge pull request #2518 from masoudbh3/godot-icons
...
Add icon to exe file in windows export
2015-11-19 00:08:47 -03:00
Juan Linietsky
33aa019e4f
Merge pull request #2699 from ZuBsPaCe/visual-studio-2015-compilation
...
Visual studio 2015 compilation
2015-11-18 23:56:06 -03:00
Juan Linietsky
0c3386b2ed
Merge pull request #2707 from akien-mga/master
...
Cosmetic fixes to SCons buildsystem
2015-11-18 19:43:28 -03:00
Juan Linietsky
067c96d26f
Merge pull request #2718 from SaracenOne/audio_system_crash_fix
...
Fixed Audio System Crash
2015-11-18 19:35:22 -03:00
Juan Linietsky
5fb95859e1
Merge pull request #2814 from masoudbh3/android-fa-locale
...
Android add FA(persian) locale strings
2015-11-18 19:21:54 -03:00
masoud bh
f2704eb162
Android add FA(persian) locale strings
2015-11-19 01:40:29 +03:30
Juan Linietsky
34a558ee8d
Merge pull request #2691 from volzhs/android_payment
...
improve android payments
2015-11-18 19:02:40 -03:00
Juan Linietsky
f738906519
Merge pull request #2737 from akien-mga/type-specific-error-output
...
Display error type (error, warning, script error) in OS::print_error + cleanup error ANSI coloring
2015-11-18 18:58:22 -03:00
Juan Linietsky
4fdb4452b8
Merge pull request #2784 from masoudbh3/resigning-android-template
...
Skip META-INF from Android Template
2015-11-18 18:35:08 -03:00
Aren Villanueva
e68c2c6c2a
Use macros to determine which iOS SDK we have in order to be backwards compatible with older SDKs when fixing template compilation issues.
2015-11-16 12:35:54 +11:00
Aren Villanueva
402c24ec8b
iOS compile fixes.
2015-11-16 11:10:07 +11:00
masoud bh
14b9579748
Skip META-INF from Android Template
2015-11-14 20:40:22 +03:30
Ariel Manzur
8adc4ef65b
windows crash and bind placeholder method
2015-11-14 11:14:17 -03:00
Rémi Verschelde
9ab7de243f
Fix error messages forcing a white font for subsequent messages
...
This is achieved using the "no specific formatting" \E[0m tag.
Fixes #2566 .
Also remove the hardcoded black background colour and use default bolded terminal font for error message.
Error logs should now look good both on terminals with a dark and light background colour.
2015-11-10 18:30:40 +01:00
Rémi Verschelde
6334895088
Display error type (error, warning, script error) in OS::print_error
...
Previously all types of errors would be shown as ERROR, thus making for example warnings (WARN_PRINT) somewhat aggressive.
ERROR is displayed in red, WARNING in yellow and SCRIPT ERROR in magenta (though the latter does not seem used so far).
Fixes #1127 .
2015-11-10 18:29:34 +01:00
Trond Abusdal
41a161647d
* Winsock UDP messages sent to an unavailable target causing WSAECONNRESET will no longer close the socket.
...
* Ensured that unsigned<->signed conversion would not cause wrong buffer size values sent to recvfrom.
2015-11-09 01:33:16 +01:00
Trond Abusdal
f809cd44ea
Fixed PacketPeerUDP getting wrongly closed due to recvfrom using rb.data_left instead of rb.space_left.
2015-11-09 00:22:05 +01:00
masoud bh
55b8c3ee48
change pe_bliss parent directory from /drivers to /tools
2015-11-09 02:24:01 +03:30
masoud bh
24f3f43457
Add icon to exe file in windows export
...
add version_info and icon sections in "export to windows platform".
add version_info and icon to godot exe file (editor & template exe).
fix an problem in image class.
change all default icons to android export icon (a little more rounded).
create an python script for convert file to cpp byte array for use in
'splash.h'.
2015-11-09 02:23:58 +03:30
Anton Yabchinskiy
3b9868d2e4
Merge branch 'master' of github.com:okamstudio/godot
2015-11-02 20:25:01 +03:00
Saracen
e723488aa3
Moved deleting sample player in OS finalize methods to before deleting audio server to prevent crash when exiting.
2015-11-02 16:36:41 +00:00
Rémi Verschelde
399b1b0474
Cosmetic fixes to SCons buildsystem
...
- Removed trailing spaces
- Made sure all indentation is done using tabs (fixes #39 )
- Potentially fixed an identation issue for openssl check
2015-11-01 20:53:26 +01:00
ZuBsPaCe
fff7cedbe1
Fixes Visual Studio 2015 parallel builds (-j switch)
...
Reference: http://stackoverflow.com/questions/284778/what-are-the-implications-of-using-zi-vs-z7-for-visual-studio-c-projects
fatal error C1041: cannot open program database 'C:\godot\vc140.pdb'; if multiple CL.EXE write to the same .PDB file, please use /FS
2015-10-30 03:13:55 +01:00
volzhs
3fbaa479e3
improve android payments
...
GodotPaymentV3 currently consumes purchased item right after purchasing.
But, some in-app item should not consume like "remove ads permanently"
So, I added "setAutoConsume(boolean)", "requestPurchased()",
"consume(sku_string)".
AutoConsume is true by default as before.
usage:
func _ready():
var payment = Globals.get_singleton("GodotPayments")
payment.setPurchaseCallbackId(get_instance_ID())
payment.setAutoConsume(false) # default : true
payment.requestPurchased() # callback : has_purchased
payment.purchase("item_name") # callback : purchase_success,
purchase_fail, purchase_cancel, purchase_owned
payment.consume("item_name") # callback : consume_success
func purchase_success(receipt, signature, sku):
print("purchase_success : ", sku)
func purchase_fail():
print("purchase_fail")
func purchase_cancel():
print("purchase_cancel")
func purchase_owned(sku):
print("purchase_owned : ", sku)
func consume_success(receipt, signature, sku):
print("consume_success : ", sku)
func has_purchased(receipt, signature, sku):
if sku == "":
print("has_purchased : nothing")
else:
print("has_purchased : ", sku)
2015-10-28 15:48:37 +09:00
Phobos Tro
2d2ab92680
Made the Atom net_wm_icon local
2015-10-26 01:36:27 +08:00
Phobos Tro
746ef7cbd6
Fixing memory leaks
2015-10-25 22:15:56 +08:00
steve
15a826571c
Added setting for CADisplayLink on iOS, so you no longer need to recompile to change it
2015-10-22 17:31:09 -07:00
firefly2442
c2aedde7e3
rasterizer comparison fix
2015-10-18 20:28:51 -05:00
Juan Linietsky
97f483af0a
fixes broken 3D in editor
2015-10-17 23:05:39 -03:00
Juan Linietsky
3d121b474b
Merge pull request #2203 from volzhs/fix_android_payments
...
Fix android payments
2015-10-17 12:12:34 -03:00
Juan Linietsky
c2515d352e
Merge pull request #2369 from Max-Might/master
...
Haiku: platform support
2015-10-17 10:48:57 -03:00
Juan Linietsky
b217e1417a
Merge pull request #2479 from firefly2442/cppcheck-unusedvars
...
ran cppcheck, found unused variables
2015-10-17 10:25:36 -03:00
Juan Linietsky
13d2710fed
Merge pull request #2474 from masoudbh3/android-armeabi-v7a
...
Fix android build script
2015-10-17 10:20:47 -03:00
Juan Linietsky
4a8bc25f18
Merge pull request #2485 from masoudbh3/fix-x11-editor-boot-splash
...
Fix X11 Editor Boot Splash (Maximized Boot Splash)
2015-10-17 10:12:34 -03:00
Juan Linietsky
782444d366
Merge pull request #2602 from sanikoyes/Pr-REUSE_ADDR_WIN32
...
Pr-REUSE_ADDR_WIN32
2015-10-17 09:44:07 -03:00
Kostadin Damyanov
c925fbce2d
Haiku: fix build
2015-10-17 15:41:01 +03:00
Didier Vandekerckhove
d48a1bd22d
Added specific get_locale to OSX platform
...
The default unix get_locale didn’t work. OS X requires a specific one.
2015-10-16 19:42:26 +02:00
sanikoyes
15f6991064
REUSE_ADDR under windows platform
2015-10-13 13:11:33 +08:00
Juan Linietsky
b3cda43a0f
Merge branch 'master' of https://github.com/okamstudio/godot
...
Conflicts:
platform/windows/detect.py
2015-10-13 01:19:32 -03:00
Kostadin Damyanov
29caf2bb5b
Merge remote-tracking branch 'upstream/master'
2015-10-13 05:01:54 +03:00
reduz
aad2bbdb6f
newline fixes
2015-10-08 15:00:40 -03:00
George Marques
6e87314d83
Add support for Opus audio format
2015-10-02 14:25:38 -03:00
Juan Linietsky
e055247b17
-Added ability to use cubic interpolation on image resize (little more quality on non-po2 resizing)
...
-Added ability for exporter to shrink images to non-integer values. Helps if you want to convert your game artwork from 1080->720 or similar
2015-10-01 16:25:36 -03:00
punto-
0840303a9c
Merge pull request #2548 from romulox-x/iCloud
...
Initial iCloud implementation
2015-09-28 17:20:16 +02:00
steve
b4daeda48b
improved iCloud build option description
2015-09-27 17:21:32 -07:00
steve
1fe5cc8e1d
Initial iCloud implementation, supporting key value pairs
2015-09-27 16:54:20 -07:00
Rémi Verschelde
be51861310
Hide stderr when trying to detect mingw binaries on posix
2015-09-27 16:31:19 +02:00
Rémi Verschelde
092f84642c
Rename voice_set_volume argument to p_volume to avoid confusion
...
This argument is indeed expected to be a volume on a linear scale (not dB),
typically from 0.0 to 1.0, though it can go higher than 1.0.
2015-09-26 22:43:34 +02:00
Juan Linietsky
c858515785
Fixed theora playback. Removed theoraplayer.
...
Still need to get proper audio output latency in some platforms.
2015-09-26 14:50:42 -03:00
Juan Linietsky
9962518ffd
Merge branch 'master' of https://github.com/okamstudio/godot
2015-09-24 18:07:13 -03:00
Juan Linietsky
82a3304458
Added ability to set custom mouse cursors. Not hardware accelerated yet.
2015-09-24 18:06:15 -03:00
Juan Linietsky
ce6fefced8
Properly implement OS.alert() from script, and use xmessage on X11
2015-09-21 09:39:46 -03:00
Juan Linietsky
83d9a692be
Ability to visually debug geometry visually:
...
-Visible 2D and 3D Shapes, Polygons, Tile collisions, etc.
-Visible Navmesh and Navpoly
-Visible collision contacts for 2D and 3D as a red point
-Customizable colors in project settings
2015-09-20 13:03:46 -03:00
masoud bh
3c466afb68
Fix X11 Editor Boot Splash
2015-09-17 05:19:43 +04:30
firefly2442
afbb6c064c
ran cppcheck, found unused variables
2015-09-16 15:35:30 -05:00
masoud bh
9d540afd1c
android remove "gen" folder from git.
2015-09-16 16:28:01 +04:30
masoud bh
867c95223d
Fix android build script
...
some fixes for android build script.
remove armv6,x86 options and add "android_arch" option for select
compiler architecture (armv7,armv6,x86)(default armv7).
add architecture suffix for output files and you can compile for several
architecture simultaneously.
example:
libgodot.android.opt.debug.armv7.so
libgodot.android.opt.debug.armv7.neon.so
libgodot.android.opt.debug.armv6.so
libgodot.android.opt.debug.x86.so
now we can enable/disable neon on armv7 with "android_neon" option
(default enable).
add "NDK_TARGET_X86" option for select toolchain to use for the NDK x86
(default x86-4.8).
change inputs model for "ndk_platform" option (default android-15).
fix armv7 ccflags.
with this patch, must put libgodot_android.so file in specific
architecture folder:
armv7 (default): <android-java>/libs/armeabi-v7a/
armv6: <android-java>/libs/armeabi/
x86: <android-java>/libs/x86/
2015-09-16 16:14:38 +04:30