Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

MetaKnight

Jumping Mouse

This topic is 5557 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!