How to know when a mouse button is pressed
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 ^_^
{
-= button is pressed =-
}
Cheers ^_^
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement