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
 
Back
Top