Marcelo Fernandez
8e814774b1
Added new WASAPI driver for Windows
2017-08-27 15:26:15 -03:00
Rémi Verschelde
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Rémi Verschelde
c90bfcb1c6
Re-apply clang-format to all files
...
Some badly formatted code has managed to pass through our CI...
2017-08-27 14:16:32 +02:00
Rémi Verschelde
612099e377
Merge pull request #10591 from Rubonnek/possible-null-ptr-dereference
...
Added/Fixed null pointer checks
2017-08-27 02:10:56 +02:00
Rémi Verschelde
ea55b400d9
Merge pull request #10598 from Rubonnek/free-memory
...
Free memory when Main::setup returns an error
2017-08-27 02:10:41 +02:00
Rémi Verschelde
5976e8d7de
Merge pull request #10625 from Rubonnek/fixed-leaks
...
Fixed several memory leaks
2017-08-27 02:10:32 +02:00
Wilson E. Alvarez
7a07895920
Added/Fixed null pointer checks
2017-08-26 16:58:47 -04:00
Henrik Andersson
3cd3c1da5f
Fix refactored Object::cast_to in NO_SAFE_CAST branch
2017-08-26 18:59:37 +02:00
Wilson E. Alvarez
bd257153dc
Free memory when Main::setup returns an error
2017-08-25 21:12:19 -04:00
Wilson E. Alvarez
1577f41653
Fixed several memory leaks
2017-08-25 08:47:05 -04:00
Hein-Pieter van Braam
cacced7e50
Convert Object::cast_to() to the static version
...
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.
This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.
It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
Pedro J. Estébanez
d806ad4a3d
Implement custom thread numbering for POSIX
...
For every UNIX-derived (Android, Linux, macOS, iOS) flavor, a global counter is atomically incremented on thread start. That id is kept as thread-local storage.
Therefore, thread ids are sequential numbers, trivially comparable. This improves the previous state of things, in which `pthread_t` were casted to `Thread::ID` and unportabily compared. Also big, ugly thread ids appeared.
2017-08-24 07:02:55 +02:00
Fabio Alessandrelli
d7f08ead4e
Allow building fat binaries with osxcross
2017-08-23 15:44:22 +02:00
Rémi Verschelde
582a97fc2c
Merge pull request #10575 from henkz1/android_quit_error
...
fix UnsatisfiedLinkError when quitting on android
2017-08-23 08:11:34 +02:00
Henrik Andersson
16de3835fa
fix UnsatisfiedLinkError when quitting
2017-08-23 03:14:51 +02:00
Wilson E. Alvarez
baa94a3758
Removed unnecessary returns and break statements
2017-08-22 13:01:57 -04:00
Pedro J. Estébanez
2a5ee5dec9
Fix Android remote debug not hitting breakpoints
...
A change in `Main`'s API is needed. Please read the comment in the diff for an explanation.
2017-08-22 17:24:20 +02:00
Pedro J. Estébanez
39c6b3d942
Make Android debug over USB the only option
...
'Remote debug over ADB' is removed as that will be always the case.
2017-08-22 17:17:42 +02:00
Rémi Verschelde
7f49e2a7a0
Merge pull request #10487 from marcelofg55/curscr_as_default
...
p_screen param from get_screen_* funcs now default to the current screen
2017-08-22 08:12:04 +02:00
Rémi Verschelde
df590fc2d3
Merge pull request #10340 from Rubonnek/remove-unnecessary-assignments
...
Removed unnecessary assignments
2017-08-22 00:58:12 +02:00
Rémi Verschelde
13f879587d
Merge pull request #10254 from marcelofg55/master
...
Added notification const NOTIFICATION_WM_ABOUT
2017-08-22 00:56:31 +02:00
Marcelo Fernandez
63f847b306
p_screen param from get_screen_* funcs now default to the current screen
2017-08-21 18:28:29 -03:00
Wilson E. Alvarez
738d2ab969
Removed unnecessary assignments
2017-08-21 15:15:55 -04:00
Rémi Verschelde
4717d37bfa
Merge pull request #10471 from akien-mga/args-doubledash
...
Third take at making command-line arguments more UNIX-like + main.cpp and help cleanup
2017-08-21 21:01:19 +02:00
Marcelo Fernandez
c6edf1821e
Fix y axis for set_window_position on OS X
2017-08-21 12:36:04 -03:00
Rémi Verschelde
93f1fb1c2f
Fixes for new two-dash long command line arguments
...
- Fixes some single-dash leftovers that were missed in the previous commit
- Reorder the help output for clarity, and document missing options
- Drop obsolete options: --noop, --pack, --editor-scene, --level, --import, --import-script, --no-quit
- Improve error message on malformed arguments and do not display help on error
- Always use long form of arguments when starting a new Godot process from C++, for clarity and easy grepping
- Cleanup obsolete code here and there
2017-08-21 08:09:22 +02:00
Juan Linietsky
b9dcebb37c
Revert "Second take at making command-line arguments more UNIX-like + main.cpp and help cleanup"
2017-08-19 17:47:27 -03:00
Rémi Verschelde
70b0857f6c
Fixes for new two-dash long command line arguments
...
- Fixes some single-dash leftovers that were missed in the previous commit
- Reorder the help output for clarity, and document missing options
- Drop obsolete options: --noop, --pack, --editor-scene, --level, --import, --import-script, --no-quit
- Improve error message on malformed arguments and do not display help on error
- Cleanup obsolete code here and there
2017-08-19 16:48:11 +02:00
Zher Huei Lee
e3e2f06324
Replacement of internal RegEx with PCRE2
...
The pattern and replacement matching behaviour has been changed purely
due to the nature of switching to a standards-compliant library.
One mistake in the previous behaviour was that named groups didn't have
a number. This has been corrected.
As names are actually just an alias of numbered groups,
RegExMatch::get_name_dict() is now get_names() and is a dict
referring to the group number it represents.
Duplicate names are enabled and the with the first matching instance
used.
Due the lack of a suitable equivalent in PCRE2, RegExMatch::expand() was
removed.
2017-08-19 19:29:14 +08:00
Richard Adenling
398e0930dc
Set the X11 class hint before mapping the window
...
Setting the class hint before mapping the window will allow some
window managers to determine if a window should be treated specially.
This is also in accordance with the ICCCM spec which says that
WM_CLASS should only be changed when a window is in a
withdrawn (unmapped) state.
Fixes #10429
2017-08-19 00:16:46 +02:00
Rémi Verschelde
6afa087596
Windows: Drop support for obsolete MinGW
...
The version we support is MinGW-w64: https://sourceforge.net/p/mingw-w64
The old original MinGW from which it was forked (https://sourceforge.net/projects/mingw ),
is no longer maintained and useless for us.
Fixes #10396 .
2017-08-18 21:46:46 +02:00
Rémi Verschelde
2ed87f33cf
Workaround missing WM_TOUCH on mingw-w64 < 4.0
...
Upstream bug report: https://sourceforge.net/p/mingw-w64/bugs/460/
2017-08-18 21:05:19 +02:00
Rémi Verschelde
3b553377c7
Windows: Drop support for Vista (0x0600)
...
We need the efficient SRWLock methods which are not supported on Vista,
and loading them dynamically while providing fallbacks is not worth the
effort. Closes #10243 .
Sorry Vista users... As you are running a supported which is no longer
supported by Microsoft (https://support.microsoft.com/en-us/help/13853/windows-lifecycle-fact-sheet ),
we can only encourage you to upgrade to a more recent version if you can,
or switch to Linux, which should give your old hardware a new youth.
2017-08-18 19:50:24 +02:00
Marcelo Fernandez
eab850524e
Add closest_power_of_2 func and implement mix_rate/latency on OS X
2017-08-17 19:51:13 -03:00
Wilson E. Alvarez
bde864cd30
Removed unused variable
2017-08-17 11:43:44 -04:00
Marcelo Fernandez
aae29c7a0e
Added notification const NOTIFICATION_WM_ABOUT
2017-08-17 11:28:45 -03:00
TwistedTwigleg
00f6c85928
Synchronize parameter names in definition and declaration
...
Fixes #10244 .
2017-08-16 17:22:23 +02:00
Rémi Verschelde
a8207b2dc7
Merge pull request #10264 from Rubonnek/use-const-reference
...
Use const reference where favorable
2017-08-16 16:41:35 +02:00
Marcelo Fernandez
51f9bbc556
Fix get_screen_* funcs returning old values after resolution changes on Windows
2017-08-14 14:49:36 -03:00
Wilson E. Alvarez
21d281c4a9
Use const reference where favorable
2017-08-14 13:28:06 -04:00
Rémi Verschelde
5cb09d31d8
Merge pull request #10142 from bruvzg/3.0-osx-ime
...
Add IME support (macOS)
2017-08-11 10:35:10 +02:00
Ignacio Etcheverry
2f290038d6
Removes type information from method binds
2017-08-10 07:17:50 +02:00
bruvzg
8aa86cb9bc
Implement NSTextInputClient protocol for IME
2017-08-09 19:09:33 +03:00
toger5
2286037bc3
removed calls to cursor_set_visible on all platforms fixes #10167
2017-08-08 14:04:22 +02:00
Rémi Verschelde
3121b3a4f4
Merge pull request #10141 from ISylvox/lower_case_godot_api
...
Makes all Godot API's Methods lower_case
2017-08-07 14:59:39 +02:00
Rémi Verschelde
b0dfec77c2
Merge pull request #10127 from bruvzg/3.0-osx-logging
...
Duplicate error messages to macOS logging system (Console.app)
2017-08-07 14:58:25 +02:00
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