aboutsummaryrefslogtreecommitdiff
path: root/platform/windows/os_windows.cpp
Commit message (Collapse)AuthorAgeFilesLines
* IME context detection.Saracen2018-06-111-2/+27
|
* Improve return value of OS.execute in blocking/non-blocking variantsRémi Verschelde2018-05-301-7/+0
| | | | | | | | | | | | | | Initialized the PID to -2, which will be the value returns in blocking- mode where the PID is not available. (-1 was already taken to signify an execution failure). OS::execute will now properly return a non-OK error code when it fails to execute the target file. The documentation was rewritten to be very clear about the differences between blocking and non-blocking mode. Fixes #19056.
* Change position of validation in set_custom_mouse_cursorGuilherme Felipe2018-05-281-1/+2
|
* Merge pull request #19210 from guilhermefelipecgs/fix_invalid_imageMax Hilbrunner2018-05-281-0/+1
|\ | | | | Add validation in set_custom_mouse_cursor
| * Add validation in set_custom_mouse_cursorGuilherme Felipe2018-05-271-0/+1
| | | | | | | | Check if the image is valid.
* | Fix memory leak in set_custom_mouse_cursorGuilherme Felipe2018-05-261-1/+6
|/
* More fixes to set_borderless_windowGuilherme Felipe2018-05-231-15/+1
| | | | | | [x11] Preserve window size when calling this method. [osx] Make sure it don't make the window resizable if it's not needed. [windows] clean up the code.
* Merge pull request #19070 from guilhermefelipecgs/fix_19033Max Hilbrunner2018-05-211-3/+30
|\ | | | | Fix mouse confined and set_borderless_window
| * Fix #19033Guilherme Felipe2018-05-201-3/+30
| | | | | | | | | | | | | | - Fix a bug when mouse is confined don't update the cursor shape. - Don't let the mouse leave the window when resizing to a smaller resolution when MOUSE_MODE_CONFINED. - Fix set_borderless_window to preserve the actual video_mode.widht/height.
* | Fix #15678Guilherme Felipe2018-05-211-1/+3
|/ | | | | Fix cursor not displaying arrow when transiting from mode captured to visible.
* Reset the cursor with Input.set_custom_mouse_cursor(null)Guilherme Felipe2018-05-101-0/+5
|
* Add support for atlas texture on set_custom_mouse_cursorGuilherme Felipe2018-05-091-7/+37
|
* Merge pull request #14622 from bruvzg/non-rectangular-windowsHein-Pieter van Braam2018-05-081-0/+121
|\ | | | | Experimental support for windows with per-pixel transparency.
| * Experimental support for windows with per-pixel transparency (macOS, X11 and ↵bruvzg2018-04-071-0/+121
| | | | | | | | Windows).
* | Local debugger fixes and extensionsBlazej Floch2018-05-071-0/+19
| | | | | | | | | | | | | | | | | | - Adds q/quit option to console debugging - Adds options (variable_prefix) - Breaks into debugger with Ctrl-C in local debug mode (Unix/Windows) - Added option to list all breakpoints - Fixes add/remove breakpoint bug (invalid path parsing) - Minor cleanup
* | 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
|
* Explicitly set OpenGL profile to core (X11, Windows).bruvzg2018-03-061-4/+12
| | | | Enable GLES2 on Windows.
* Clean and expose get_audio/video_driver_* funcs on OS classMarcelo Fernandez2018-03-041-20/+0
|
* Fixed Windows ignoring minimized/maximized status set by userMarcelo Fernandez2018-02-261-1/+10
|
* Merge pull request #15564 from RandomShaper/adpod-topmostRémi Verschelde2018-02-141-0/+19
|\ | | | | Add new window setting: always on top
| * Add new window setting: always on topPedro J. Estébanez2018-01-051-0/+19
| | | | | | | | Implemented for Windows and Linux.
* | Merge pull request #15864 from GodotExplorer/pr-get_unique_id-desktop-implRémi Verschelde2018-02-141-0/+18
|\ \ | | | | | | Implement more methods for OS on Desktop platforms
| * | Windows: implement OS.get_unique_id and OS.set_ime_positiongeequlim2018-01-311-0/+18
| | |
* | | Added OS::center_window to center the window precisely on desktop platformsMarcelo Fernandez2018-02-121-0/+6
|/ /
* | Implement OS::get_processor_count() for WindowsHein-Pieter van Braam2018-01-291-0/+30
| | | | | | | | | | | | | | | | | | 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.
* | Fix remove_dll_directory crash when cookie is nulldjgaspa2018-01-261-2/+2
| |
* | 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
|/
* Forced set mouse global position always, hopefully will fix #15354, ↵Juan Linietsky2018-01-051-0/+1
| | | | otherwise out of luck.
* 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-041-4/+6
|
* Merge pull request #12814 from guilhermefelipecgs/add_hardware_custom_cursorRémi Verschelde2018-01-031-1/+116
|\ | | | | Custom hardware-accelerated mouse cursor
| * Add implementation for custom hardware cursorGuilherme Silva2017-12-171-1/+116
| |
* | Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Add epic hack so vsync can be toggled in run-time from script. Fixes #14458.Juan Linietsky2017-12-161-3/+3
| | | | Call needs to be routed via visual server to reach the proper thread.
* Move windows networking class to drivers/windows/Fabio Alessandrelli2017-12-151-5/+5
| | | | | Also rename stream_peer_winsock.* to stream_peer_tcp_winsock.* and StreamPeerWinsock to StreamPeerTCPWinsock.
* Fix type mismatch in OS::set_borderless_windowRémi Verschelde2017-12-141-1/+1
| | | | Closes #14663.
* -Add lightmapperJuan Linietsky2017-12-141-0/+4
| | | | | | -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)
* 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
* Use run-time dynamic linking for AddDllDirectory and RemoveDllDirectory to ↵bruvzg2017-12-071-5/+12
| | | | support mingw-w64 build and Windows 7 with KB2533623.
* Remove guards for the now targeted Windows 7+Pedro J. Estébanez2017-12-061-13/+3
|
* Improve/fix multitouch on WindowsPedro J. Estébanez2017-12-061-13/+43
| | | | | | | - Fix logic error. - Track touches to enable defensive handling and releasing on focus out. - Change comment-out by preprocessor `#if`. - Track/report coordinates as float.
* Properly take into consideration that VERTEX must be written to in opaque ↵Juan Linietsky2017-12-011-1/+19
| | | | pre pass, does some speed up to scenes using triplanar.
* Needed a broader search path flagBastiaan Olij2017-12-011-1/+1
|
* Changed the dynamic library open function to allow setting the path of the ↵Juan Linietsky2017-11-301-3/+16
| | | | library to open extra libraries.