Jump to content
  • Advertisement
Sign in to follow this  
AndyEsser

Visual Basic Mouse Control

This topic is 4523 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
Advertisement
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  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!