Sign in to follow this  
AndyEsser

Visual Basic Mouse Control

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this