summaryrefslogtreecommitdiff
path: root/platform
AgeCommit message (Collapse)Author
2017-03-04Fix handling input for Androidvolzhs
2017-02-27Fix failing build on mageia v6 x64 linux.Shlomi Fish
There was an error about undeclared malloc()+free().
2017-02-26Merge pull request #7862 from Hinsbart/joypad_connectionsRémi Verschelde
Better handling of joypad device IDs.
2017-02-26Better handling of joypad device IDs.Andreas Haas
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-26Merge pull request #7834 from hpvb/x11-return-to-cwd-at-exitRémi Verschelde
X11 return to cwd at exit
2017-02-26Merge pull request #7854 from neikeq/pr-execute-iterRémi Verschelde
Replace misuse of list iteration
2017-02-26Merge pull request #7851 from shlomif/fix-some-compilation-warningsRémi Verschelde
Get rid of some compilation warnings.
2017-02-26Merge pull request #7848 from hpvb/fix-7839Rémi Verschelde
Windows: Close audiodriver sooner on exit
2017-02-24Merge pull request #7880 from bojidar-bg/fix-iphone-buildsRémi Verschelde
Really fix iphone builds
2017-02-23Really fix iphone buildsBojidar Marinov
2017-02-23Merge pull request #7879 from bojidar-bg/fix-iphone-buildsRémi Verschelde
Complete the globals.h -> global_config.h conversion
2017-02-23Complete the globals.h -> global_config.h conversionBojidar Marinov
2017-02-22Fixes to webgl/opengl es 3.0 for compatibility with webgl2.0, still does not ↵Juan Linietsky
work though
2017-02-21Fix WebAssembly builds on Windowseska
2017-02-21Fix some compilation warnings.Shlomi Fish
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-renamed globals.h to global_config.cpp (this seems to have caused a few ↵Juan Linietsky
modified files) -.pck and .zip exporting redone, seems to be working..
2017-02-20Replace misuse of list iterationIgnacio Etcheverry
2017-02-20Automatically zip web export templateseska
Also fix web builds on Windows and clean up
2017-02-20Fix parallel asm.js/WebAssembly buildseska
2017-02-19Editor Export Settings Dialog is completed!! Now on to make some exporters..Juan Linietsky
2017-02-19Windows: Close audiodriver sooner on exitHein-Pieter van Braam
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-18X11 return to cwd at exitHein-Pieter van Braam
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-17X11: Move audio driver finalize to the start of cleanupHein-Pieter van Braam
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-17X11: Finalize audiodrivers on exitHein-Pieter van Braam
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-13Fix missing semicolon in previous commitRémi Verschelde
2017-02-13Fix for issue #7766Brett-Mitchell
Add initialization for OS_OSX.mouse_mode in OS_OSX::OS_OSX(). mouse_mode now defaults to OS::MOUSE_MODE_VISIBLE.
2017-02-13Rename the _MD macro to D_METHODHein-Pieter van Braam
This new name also makes its purpose a little clearer This is a step towards fixing #56
2017-02-12Merge pull request #7581 from Faless/v6_wild_bindRémi Verschelde
TCP/UDP listen bind to address and bugfixes
2017-02-12Merge pull request #7782 from SaracenOne/windows_relative_cursor_fixRémi Verschelde
Fix relative cursor data in CAPTURED mouse mode on Windows.
2017-02-12Merge pull request #7771 from Limb/winaudiodriverRémi Verschelde
Close out audio drivers when exiting on Windows.
2017-02-12Merge pull request #7770 from Limb/removedx9Rémi Verschelde
Removed DX9 Rasterizer in windows
2017-02-11Fix glitches when sampling relative cursor data in CAPTURED mouse mode on ↵Saracen
Windows.
2017-02-09Close out audio drivers when exiting.Kenneth Lorthioir
Prevents a crash when closing the project manager.
2017-02-09Removed DX9 Rasterizer in windows.Kenneth Lorthioir
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-08Fixed compilation issues with Visual StudioKenneth Lorthioir
2017-02-02Merge pull request #7578 from baekdahl/masterRémi Verschelde
x11: don't wait for window to be mapped
2017-02-02Merge pull request #7689 from eska014/webgl2Rémi Verschelde
Enable WebGL2 in web export, start fixing build
2017-02-02Merge pull request #7683 from marcelofg55/masterRémi Verschelde
Fix issues with set_window_resizable on x11
2017-02-02Merge pull request #7645 from tagcup/x11_optimization_flags_v2Rémi Verschelde
Use -Ofast on x11. Also introduced use_lto option.
2017-02-01Enable WebGL2 in web export, start fixing buildeska
Will not yet compile
2017-01-30Fix issues with set_window_resizable on x11marcelofg55
2017-01-26Use -Ofast on x11. Also introduced use_lto option.Ferenc Arn
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-25Removed import/export system, will start new one from scratch.Juan Linietsky
2017-01-25Added focus tracking in X11 and Windows classes, added new confined mouse ↵Ilija Boshkov
mode (#7162)
2017-01-25Fix resources for Android modules not being mergedPedro J. Estébanez
Fixes #7421
2017-01-23Fix buffer size check in UDP socket.Fabio Alessandrelli
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-23Use default UDP ring buffer size of 65536 for clientsFabio Alessandrelli
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-23Fix bug causing UDP socket to close after the first send if not listeningFabio Alessandrelli
The ring buffer for receiving packets was not resized in constructor
2017-01-23Avoid deadlock when writing/reading data on a connecting TCP socketFabio Alessandrelli
TCP status polling is always performed as non blocking. Trying to put a packet on a connecting socket will fail immediately.
2017-01-23Remove set_ip_type from network classes (no longer needed)Fabio Alessandrelli
- 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)