Jump to content
  • Advertisement
Sign in to follow this  
sidbhati32

C++ How To use mouse Events

Recommended Posts

 

 

How do I detect the mouse event of moving my mouse left or right and wheel up or down?

I have used Get_X_LParam for mouse movement and WParam for wheel movement.
Like DWORD x = HIWORD(wParam) but both of these events return continuous values.

for eg. if(x>0)
{
//do this
}

else
{
//do this
}

the Wparam only returns the same value every time even if I am moving my wheel downwards. Same with Get_X_LParam
 

Share this post


Link to post
Share on other sites
Advertisement

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  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!