Skip to main content
gamedev.net
🔒 Locked

Mouse Wrap

Started by Funkymunky 2 replies 800+ views
Original Post
Funkymunky
Funkymunky
I wasn't sure if I should put this in the DirectX forum, as I am primarily talking about a Windows 32 platform. I want to make the mouse cursor wrap around the edges, so that if you scroll really fast the mouse will continually scroll through the screen in one direction. ?
dave
dave
What you are looking to do here is find the difference in the position between where the mouse is in the current frame compared to the origin (the middle of the screen) and then put the mouse back to the middle of the screen after you are done with its movement. This way the mouse never reaches the edges.
Funkymunky
Funkymunky
Quote:
Original post by Dave
put the mouse back to the middle of the screen


How?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.