glfw/tests
Pokechu22 49914ab15b Fix disabled cursor mode over remote desktop
There were two major issues:

- RDP uses MOUSE_MOVE_ABSOLUTE for its input events, and the
implementation of this was incorrect.  Although poorly documented,
the values actually range from 0-65535 and represent monitor positions,
instead of being positions beforehand.  The equally poorly documented
MOUSE_VIRTUAL_DESKTOP flag specifies whether or not to use the
SCREEN or VIRTUALSCREEN system metrics.

- Using `SetCursor(NULL)` causes `SetCursorPos` to behave incorrectly
over RDP; it doesn't actually move it on the connected machine.
This has been fixed by creating an invisible cursor, which does
get moved correctly.

Aside from that, the center of the window is now cached and the cursor
test now supports pressing M to move the cursor to the center.

Fixes #1276.
2018-05-28 14:56:25 -07:00
..
clipboard.c Make remaining tests set viewport in render loop 2018-02-07 16:46:51 +01:00
CMakeLists.txt Cocoa: Update MoltenVK support for LunarG SDK 2018-03-01 21:45:46 +01:00
cursor.c Fix disabled cursor mode over remote desktop 2018-05-28 14:56:25 -07:00
empty.c Paperwork done 2016-11-30 14:00:41 +01:00
events.c Make remaining tests set viewport in render loop 2018-02-07 16:46:51 +01:00
gamma.c Cleanup 2017-12-19 15:08:27 +01:00
glfwinfo.c Clarify what glfwVulkanSupported means 2017-08-20 14:42:39 +02:00
icon.c Paperwork done 2016-11-30 14:00:41 +01:00
iconify.c Make remaining tests set viewport in render loop 2018-02-07 16:46:51 +01:00
inputlag.c Add input lag test 2017-08-18 13:01:47 +02:00
joysticks.c Add mapping file drop support to joystick test 2017-12-06 18:01:32 +01:00
monitors.c Add content scale queries 2017-10-26 17:26:36 +02:00
msaa.c Add remaining GLSL version directives 2016-12-05 14:16:56 +01:00
opacity.c Remove unused variable in opacity test 2018-03-01 08:29:04 +01:00
reopen.c Add remaining GLSL version directives 2016-12-05 14:16:56 +01:00
tearing.c Make remaining tests set viewport in render loop 2018-02-07 16:46:51 +01:00
threads.c Paperwork done 2016-11-30 14:00:41 +01:00
timeout.c Paperwork done 2016-11-30 14:00:41 +01:00
title.c Make remaining tests set viewport in render loop 2018-02-07 16:46:51 +01:00
vulkan.c Remove trailing whitespace 2017-12-14 15:36:55 +01:00
windows.c Paperwork done 2016-11-30 14:00:41 +01:00