Capturing Mouse in fullscreen (GLFW3)

Monkey Targets Forums/Desktop/Capturing Mouse in fullscreen (GLFW3)

DeadFall(Posted 2015) [#1]
So I'm trying to make it so when you're in fullscreen and if you try to move the mouse off the screen it'll just stop at the corner of the screen. For GLFW2 I had working code for that but with GLFW3 the code I'm using doesn't seem to work.

When in fullscreen (2 monitors) the mouse can move over to the second monitor. For single screens it's not a problem. Any advice?

Code I'm using.


And In Monkey



dawlane(Posted 2015) [#2]
I think you will find your answer in the GLFW documentation.
http://www.glfw.org/docs/latest/input.html#input_mouse