Advertisement

How to know when a mouse button is pressed

Started by September 12, 2000 02:02 PM
1 comment, last by MindWipe 24 years, 3 months ago
How do I do that? I don''t want to use Dinput. I just learnt: GetCursorPos But how do I know if the mouse button is pressed?
"To some its a six-pack, to me it's a support group."
if( GetAsyncKeyState( VK_LBUTTON ) & 0x8000 )
{
-= button is pressed =-
}


Cheers ^_^
Advertisement
Or you can always get the WM_LBUTTONDOWN message. Meduzza''s way is probably better for games though.
- DanielMy homepage

This topic is closed to new replies.

Advertisement