aboutsummaryrefslogtreecommitdiff
path: root/platform/windows (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implement pull/18665 for 3.0Hein-Pieter van Braam2018-05-131-2/+8
| | | | Windows detect.py: Detect missing WindowsSdkDir
* Merge pull request #18082 from RandomShaper/improve-gui-touch-3.0Hein-Pieter van Braam2018-05-131-24/+15
|\ | | | | Implement universal translation of touch to mouse (3.0)
| * Implement universal translation of touch to mousePedro J. Estébanez2018-04-301-24/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now generating mouse events from touch is optional (on by default) and it's performed by `InputDefault` instead of having each OS abstraction doing it. (*) The translation algorithm waits for a touch index to be pressed and tracks it translating its events to mouse events until it is raised, while ignoring other pointers. Furthermore, to avoid an stuck "touch mouse", since not all platforms may report touches raised when the window is unfocused, it checks if touches are still down by the time it's focused again and if so it resets the state of the emulated mouse. *: In the case of Windows, since it already provides touch-to-mouse translation by itself, "echo" mouse events are filtered out to have it working like the rest. On X11 a little hack has been needed to avoid a case of a spurious mouse motion event that is generated during touch interaction. Plus: Improve/fix tracking of current mouse position.
* | Explicitly set OpenGL profile to core (X11, Windows).bruvzg2018-04-142-1/+3
| | | | | | | | | | | | Enable GLES2 on Windows. (cherry picked from commit ad67911f1a45370558f968cdc1540f707534c28f)
* | Add new window setting: always on topPedro J. Estébanez2018-04-142-0/+21
|/ | | | | | Implemented for Windows and Linux. (cherry picked from commit ee2c31d306e9333b520e0668f26807d876905241)
* Fixed Windows ignoring minimized/maximized status set by userMarcelo Fernandez2018-03-011-1/+10
| | | | (cherry picked from commit f8da9550f4946d438dc1a9074d039ea7a446c293)
* Refactor version macros and fix related bugsRémi Verschelde2018-02-241-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous logic with VERSION_MKSTRING was a bit unwieldy, so there were several places hardcoding their own variant of the version string, potentially with bugs (e.g. forgetting the patch number when defined). The new logic defines: - VERSION_BRANCH, the main 'major.minor' version (e.g. 3.1) - VERSION_NUMBER, which can be 'major.minor' or 'major.minor.patch', depending on whether the latter is defined (e.g. 3.1.4) - VERSION_FULL_CONFIG, which contains the version status (e.g. stable) and the module-specific suffix (e.g. mono) - VERSION_FULL_BUILD, same as above but with build/reference name (e.g. official, custom_build, mageia, etc.) Note: Slight change here, as the previous format had the build name *before* the module-specific suffix; now it's after - VERSION_FULL_NAME, same as before, so VERSION_FULL_BUILD prefixed with "Godot v" for readability Bugs fixed thanks to that: - Export templates version matching now properly takes VERSION_PATCH into account by relying on VERSION_FULL_CONFIG. - ClassDB hash no longer takes the build name into account, but limits itself to VERSION_FULL_CONFIG (build name is cosmetic, not relevant for the API hash). - Docs XML no longer hardcode the VERSION_STATUS, this was annoying. - Small cleanup in Windows .rc file thanks to new macros. (cherry picked from commit 23ebae01dc7e3df9c842ca7d017f7b233837721d)
* Fix typos with codespellluz.paz2018-02-221-2/+2
| | | | | | | | | | | | | | | | Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt` Whitelist consists of: ``` ang doubleclick lod nd que te unselect ``` (cherry picked from commit 612ab4bbc6f2396f4dcd68c3f142f7dfa2f5f0a5)
* PEP3101 applied with changing old type string formatting as new onesBTaskaya2018-02-191-3/+3
| | | | (cherry picked from commit 78dba05fc02c7258b5f9f5a53cf4ea8a3c6ba856)
* Added OS::center_window to center the window precisely on desktop platformsMarcelo Fernandez2018-02-192-0/+7
| | | | (cherry picked from commit ea1d726a4603fdd6bd4dfa6c1fa3128cfb2915c7)
* Windows: Fix case of imm32 for case-sensitive MinGW buildRémi Verschelde2018-02-191-2/+2
| | | | | | Fixes #16713. (cherry picked from commit 4fa8987494c213bf85fbadaf394d844874544990)
* Windows: implement OS.get_unique_id and OS.set_ime_positiongeequlim2018-02-193-2/+15
| | | | (cherry picked from commit 3be04f73f567b9c39efae697e2a9b7d3c6185fc3)
* Implement OS::get_processor_count() for WindowsHein-Pieter van Braam2018-01-302-0/+33
| | | | | | | | | | | Current this is hardcoded as '1' for any platform except Unix. The little is_wow64() dance is required to get correct output on a 32bit compiled godot running on 64bit Windows according to MSDN. This code should be UWP safe but I have no way to test that so it's not implemented for UWP yet. (cherry picked from commit b4d369c887001a824a4f27e59e3e300c8d4a5bb7)
* Merge pull request #16081 from djgaspa/dll-directoryRémi Verschelde2018-01-271-2/+2
|\ | | | | Fix remove_dll_directory crash when cookie is null
| * Fix remove_dll_directory crash when cookie is nulldjgaspa2018-01-261-2/+2
| |
* | Make separate debug symbols opt-inHein-Pieter van Braam2018-01-262-1/+2
|/ | | | | | | This adds a separate_debug_symbols option to the x11, windows, and osx targets. This will default to adding normal debugging symbols to the artifacts and only splits them when separate_debug_symbols=yes on the Scons command line.
* Fix horizontal scroll for windows platformbinbitten2018-01-201-1/+1
|
* sorry, accidentally pressed delete before commiting.Juan Linietsky2018-01-101-1/+2
|
* Added middle button doubleclick, fixes #15567Juan Linietsky2018-01-101-1/+7
|
* SCons: Fix usage of LD when we meant LINKRémi Verschelde2018-01-051-1/+1
| | | | | | | Also made LINK and CXXFLAGS configurable as command line options. Note that LINK currently expects the *compiler* that will be used for linking and will call its configured linker behind the scenes (so g++, clang++, etc., not ld.gold). See #15364 for details.
* Forced set mouse global position always, hopefully will fix #15354, ↵Juan Linietsky2018-01-051-0/+1
| | | | otherwise out of luck.
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-0516-0/+16
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Add support from properly exporting shared objects, needed for GDNative exportJuan Linietsky2018-01-041-2/+9
|
* Change OS::initialize signature to return Error (fix segfault on x11)Emmanuel Leblond2018-01-042-5/+7
|
* Merge pull request #12814 from guilhermefelipecgs/add_hardware_custom_cursorRémi Verschelde2018-01-032-1/+119
|\ | | | | Custom hardware-accelerated mouse cursor
| * Add implementation for custom hardware cursorGuilherme Silva2017-12-172-1/+119
| |
* | Update copyright statements to 2018Rémi Verschelde2018-01-0121-42/+42
| | | | | | | | Happy new year to the wonderful Godot community!
* | Improve LTO build with MSVCGeorge Marques2017-12-311-1/+5
| |
* | -Removed OpenMP support, replaced by a custom class.Juan Linietsky2017-12-241-5/+0
| | | | | | | | -Disabled Opus, implementation is wrong.
* | Do not require OpenMP for non-tools builds (export templates)Rémi Verschelde2017-12-221-2/+2
|/
* Add support for whole program optimization on MSVCGeorge Marques2017-12-161-0/+3
| | | | Since it's similar to LTO, it can be enabled by setting use_lto=yes.
* Add epic hack so vsync can be toggled in run-time from script. Fixes #14458.Juan Linietsky2017-12-162-5/+5
| | | | Call needs to be routed via visual server to reach the proper thread.
* Rename the debug symbol files to .debugsymbolsHein-Pieter van Braam2017-12-161-2/+2
| | | | Some users were confused by the '.debug' suffix for the symbols.
* Merge pull request #14708 from Faless/get_packet_not_const_rebasedRémi Verschelde2017-12-168-1086/+5
|\ | | | | Remove "const" from PacketPeer get_packet/get_var, move windows network related stuff to drivers
| * Move windows networking class to drivers/windows/Fabio Alessandrelli2017-12-158-1086/+5
| | | | | | | | | | Also rename stream_peer_winsock.* to stream_peer_tcp_winsock.* and StreamPeerWinsock to StreamPeerTCPWinsock.
| * Remove "const" from PacketPeer get_packet/get_varFabio Alessandrelli2017-12-152-7/+7
| | | | | | | | | | | | They are NOT constant methods, as state by the comment message, they fetch the last packet and then forget about it, actively changing the state of the object.
* | Fix 32bit MingW build for thekla_altasHein-Pieter van Braam2017-12-151-1/+1
|/
* Remove debug printf on WindowsRémi Verschelde2017-12-151-2/+0
|
* Fix type mismatch in OS::set_borderless_windowRémi Verschelde2017-12-142-2/+2
| | | | Closes #14663.
* Added indent_style to editorconfig, fixed inconsistent use of tabs and ↵Colin Kinloch2017-12-141-5/+5
| | | | spaces in indentation.
* -Add lightmapperJuan Linietsky2017-12-143-0/+13
| | | | | | -Fixes to unwrapper (remove degenerates), makes Thekla not crash -Added optional cancel button in EditorProgress -Added function to force processing of events (needed for cancel button)
* Use MinGW specific binutils for debug symbols separationbruvzg2017-12-111-3/+8
|
* Merge pull request #14434 from Smjert/fix/13447/vsyncRémi Verschelde2017-12-091-0/+2
|\ | | | | Fixes vsync setting ignored when using a separate thread for rendering
| * Fixes vsync setting ignored when using a separate thread for renderingStefano Bonicatti2017-12-091-0/+2
| | | | | | | | | | | | | | | | | | Setting the vsync in the main thread, after the rendering thread starts and takes the OpenGL context fails, so we need to do that before. Also, for some reason, the main thread cannot make current the context anymore. Fixes #13447
* | Windows export: Use WINE to run rcedit on non-Windows hostRémi Verschelde2017-12-091-8/+36
| | | | | | | | | | | | | | WINE can be either run from a provided path ("export/windows/wine"), or looked up in the system PATH. Fixes #14441.
* | Merge pull request #14437 from vnen/rceditRémi Verschelde2017-12-091-1/+97
|\ \ | |/ |/| Call rcedit on export for Windows desktop
| * Call rcedit on export for Windows desktopGeorge Marques2017-12-091-1/+97
| | | | | | | | | | | | - Add an editor setting to read the rcedit path. - Add settings to the export preset with icon and other exe information (version, name, copyright, etc.)
* | Style: Apply new clang-format 5.0 style to all filesRémi Verschelde2017-12-072-6/+8
| |
* | Fix windows compilation when using MinGWMrCdK2017-12-071-1/+1
| |
* | Use run-time dynamic linking for AddDllDirectory and RemoveDllDirectory to ↵bruvzg2017-12-071-5/+12
| | | | | | | | support mingw-w64 build and Windows 7 with KB2533623.