PDA

View Full Version : Problems with Mouse



glFan
01-27-2002, 11:09 PM
Hi

Does anyone know how to set the mouse
to some Cordinates in Windows ?
I have a FPS View and when then mouse
gets to a border I cannt move.
I think i should set the mouse every frame
to the center and get the differents to move the camera.

Nils

Platinum
01-27-2002, 11:38 PM
Maybe you should look at DirectInput and "acquire" the mouse. It will solve your problem. (thats what many programs do, I think)

hope it helps
Platinum

marcus256
01-27-2002, 11:55 PM
Check out GLFW 2.0 (prerelease): http://hem.passagen.se/opengl/glfw/

With it you can glfwDisable( GLFW_MOUSE_CURSOR ), which hides the mouse cursor, and automatically does what you described (center it to the window every frame). I think that you will find GLFW very useful for many other things too...

glFan
01-28-2002, 04:31 AM
Hi

Thank you for your help.
I found a Function
(SetCursorPos ) that totallay matchs.

glFan