aboutsummaryrefslogtreecommitdiff
path: root/platform/windows (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #18541 from profan/fix/win-sleepMax Hilbrunner2018-05-051-0/+6
|\ | | | | Windows: ensure minimum possible timer resolution for sleep
| * windows: ensure minimum possible timer resolution for sleepRobin Hübner2018-05-011-0/+6
| |
* | 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. ** Summary of changes to settings: ** - `display/window/handheld/emulate_touchscreen` becomes `input/pointing_devices/emulate_touch_from_mouse` - New setting: `input/pointing_devices/emulate_mouse_from_touch`
* Fix custom cursor when it's hiddenGuilherme Felipe2018-04-091-1/+9
| | | | | | | | | [Linux] Ensures that the custom cursor will be used when changing to MOUSE_MODE_VISIBLE. Fix #3086 [Windows] Fix cursor flickering when MOUSE_MODE_HIDDEN. [Mac] Fix possible cursor flicker when MOUSE_MODE_HIDDEN.
* Remove size restriction for mouse cursorGuilherme Felipe2018-04-051-7/+6
|
* Fix MinGW cross-buildbruvzg2018-03-151-2/+3
|
* Added missing import BoolVariableBastiaan Olij2018-03-151-1/+1
| | | | Didn't like the missing BoolVariable :)
* Enable SCons to autodetect Windows MSVC compilerGary Oberbrunner2018-03-131-155/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | SCons has good compiler detection logic for MSVC compilers. Up to now, Godot hasn't used it; it depends on passed-in OS environment vars from a specific Visual Studio cmd.exe windows. This makes it harder to build from a msys or cygwin shell. This change allows SCons to autodetect Visual Studio unless it sees VCINSTALLDIR in the os.environ. It also adds a 'msvc_version' arg for manual specification of compiler version, and uses the existing 'bits' arg to specify the target architecture. More detail could be added as desired. It also adds 'use_mingw' to always use mingw, even if Visual Studio is installed. That uses the existing mingw setup logic. If people are used to building Godot in a Visual Studio cmd window, this should not change the behavior in that case, since VCINSTALLDIR will be set in those windows. (However, note that you could now unset that var and build with any other MSVC version or target arch, even in that window.) I refactored much of platform/windows/detect.py during this, to simplify and clarify the logic. I also cleaned up a bunch of env var settings in windows/detect.py and SConstruct to use modern SCons idioms and simplify things. I suspect this will also enable using the Intel compiler on Windows, though that hasn't been tested.
* Explicitly set OpenGL profile to core (X11, Windows).bruvzg2018-03-062-4/+15
| | | | Enable GLES2 on Windows.
* Clean and expose get_audio/video_driver_* funcs on OS classMarcelo Fernandez2018-03-042-26/+0
|
* add GLES 2 renderer for 2Dkarroffel2018-03-011-0/+1
| | | | | | | | This commit adds a new rendering backend, GLES2, and adds a project setting to enable it. Currently this backend can only be used on the X11 platform, but integrating into other platforms is planned.
* Fixed Windows ignoring minimized/maximized status set by userMarcelo Fernandez2018-02-261-1/+10
|
* Refactor version macros and fix related bugsRémi Verschelde2018-02-231-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.
* Fix typos with codespellluz.paz2018-02-211-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 ```
* Link bcrypt lib in window and UWPFabio Alessandrelli2018-02-201-2/+2
|
* Merge pull request #16696 from BTaskaya/masterRémi Verschelde2018-02-191-3/+3
|\ | | | | PEP3101 applied with changing old type string formatting as new ones
| * PEP3101 applied with changing old type string formatting as new onesBTaskaya2018-02-141-3/+3
| |
* | Windows: Fix case of imm32 for case-sensitive MinGW buildRémi Verschelde2018-02-151-2/+2
|/ | | | Fixes #16713.
* Merge pull request #15564 from RandomShaper/adpod-topmostRémi Verschelde2018-02-142-0/+21
|\ | | | | Add new window setting: always on top
| * Add new window setting: always on topPedro J. Estébanez2018-01-052-0/+21
| | | | | | | | Implemented for Windows and Linux.
* | Merge pull request #15864 from GodotExplorer/pr-get_unique_id-desktop-implRémi Verschelde2018-02-143-2/+24
|\ \ | | | | | | Implement more methods for OS on Desktop platforms
| * | Windows: implement OS.get_unique_id and OS.set_ime_positiongeequlim2018-01-313-2/+24
| | |
* | | Added OS::center_window to center the window precisely on desktop platformsMarcelo Fernandez2018-02-122-0/+7
|/ /
* | Implement OS::get_processor_count() for WindowsHein-Pieter van Braam2018-01-292-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.
* | 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.