Sign in to follow this  

Visual Basic Mouse Control

This topic is 4336 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

Hey All I've got my world rotating with the mouse, the only problem is that because i can't clamp the mouse to the middle of the screen the rotation continues until i return the mouse to the centre of the screen. Can anyone help? Thanks in advance

Share this post


Link to post
Share on other sites
Well, you can use the SetCursorPos API function to manually move the mouse to a specific point. If you want to get more sophisticated and restrict the mouse to a particular rectangular area, you can use ClipCursor.

The way you use these functions depends on the version of Visual Basic you're writing code in.

Share this post


Link to post
Share on other sites
Sign in to follow this