Commit Graph

18 Commits

Author SHA1 Message Date
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
A. Tombs
1b17a5293c Add version directives to GLSL shaders
Although not technically required, I believe it is best practice for
shaders to specify which version of the GLSL spec they conform to.

Closes #864.
2016-12-05 14:06:39 +01:00
Camilla Löwy
f4d0c83181 Paperwork done 2016-11-30 14:00:41 +01:00
Camilla Berglund
c4a8930909 Cleanup 2016-09-21 16:23:38 +02:00
Camilla Berglund
f7584bf14c Convert cursor test to GL2 2016-09-19 22:19:20 +02:00
Camilla Berglund
757eea2779 Update email address 2016-06-01 21:25:20 +02:00
Camilla Berglund
4adbeced25 Make cursor test wait by default 2016-05-31 15:38:28 +02:00
Camilla Berglund
3b2e96e0b1 Improve cursor test animation
Only set cursor when it's time for a new frame.  Use
glfwWaitEventsTimeout when waiting for events during animation.
2016-03-07 12:33:32 +01:00
Camilla Berglund
1b1ef31228 Make tests and examples use glad 2015-10-14 12:38:18 +02:00
Camilla Berglund
0eccf75f65 Replace GL booleans with public macros 2015-10-13 00:46:02 +02:00
Camilla Berglund
362751e4ef Fix cursor test event mode message 2015-08-16 14:29:04 +02:00
Camilla Berglund
d2113dc9f5 Remove ad-hoc M_PIs and enable VC++ macro
Fixes #564.
2015-08-09 13:57:04 +02:00
Camilla Berglund
3d62ff0e07 Fix implicit truncation to float in cursor test
Fixes #565.
2015-08-09 13:57:04 +02:00
Camilla Berglund
33c7c28dde Replaced the various cursor tests with a sane one. 2015-07-16 17:48:59 +02:00
Camilla Berglund
46888206be Removed unused GLU dependency. 2015-03-12 01:33:48 +01:00
Camilla Berglund
8fa9cc0de3 Added GLFWimage struct. 2014-03-20 11:30:27 +01:00
Camilla Berglund
608de57358 Cleanup. 2014-03-20 11:30:27 +01:00
urraka
40c04a7565 Added support for custom system cursors.
This adds 3 functions to the GLFW API: glfwCreateCursor,
glfwDestroyCursor and glfwSetCursor.
2014-03-20 11:30:27 +01:00