Mouse state

  • Thread starter Thread starter Abhishek
  • Start date Start date
A

Abhishek

Hi All
How do I find the state of a mousebutton.
I need it to return 1 if it is clicked and 0 if not.
or something similar

thanks for your help
regards
Abhishek
 
How do I find the state of a mousebutton.

Abhishek,

Use the GetKeyState API with one of the mouse button "keys":

VK_LBUTTON, VK_RBUTTON, VK_MBUTTON

Dave
 
Dude anyone told u that U rock
worked perfectly!!

thanks a million
Abhishek
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top