Sign in to follow this  

[.net] held mouse button

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

I'm writing a VR app in C# and I want the user to walk forward when holding down the right mouse button. Using MouseDown and then polling for which button is pushed doesn't work because it would require the user to continuously push the button. MouseHover doesn't work because it takes a SystemEvent arguement and can't poll for which button is pushed. MouseMove doesn't work because I need this functionality even if the mouse hasn't moved. What's the best way to detect a "held" mouse button? Sorry for the stupid question, but somebody's gotta ask 'em, dammit.

Share this post


Link to post
Share on other sites

This topic is 3937 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.

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