Jumping Mouse

Started by
2 comments, last by MetaKnight 20 years, 6 months ago
Hi, im trying to make it so that the mouse never stops at the edge of the sceen. Forexample you can keep spining an object. In order to do this i make it so that the mouse is stuck to the center of the sceen and i only add the differnce. But this leads to jumping. Can anyone help me out? if(xPos != 500) SetCursorPos(500,500); GetCursorPos(&thispoint); xPos = thispoint.x; double PIN =(xPos-500); camLOOK = camLOOK.Rotate((PIN/1000)); [edited by - MetaKnight on September 22, 2003 9:56:57 AM] [edited by - MetaKnight on September 22, 2003 9:57:15 AM]
Advertisement
maybe you could test for the mouse being at the edge of a screen side, then set the mouse to the other side (altering the camera angle the correct amount while you do so). I dunno, that''s what I''d try. Good luck.
Try not displaying the cursor. Use ShowCursor(false) .
oh... if the visual of the cursor jumping is the only problem.. lol, that''d work then

This topic is closed to new replies.

Advertisement