Skip to main content
GameDev.net gamedev.net
🔒 Locked

WM_MOUSE

Started by penetrator Jan 16, 2003 at 11:52 AM 0 replies 1.5k views
Original Post
penetrator
penetrator
I normally use to retrieve the horizontal and vertical position of the mouse cursor. But if the mouse is at xPos=0 and i move it to the left, how can i get the "distance" it runs ?
www.web-discovery.net

xiros
xiros
never let it reach 0 by putting it in the center every frame. Then find the distance it moved from the center.

Topic Locked

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

Sign in to reply to this topic.