🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Tutorial 23 - Mousesupport
I''ve read tut23 and now I wonder how to check if the player presses one of the mouse-buttons.
So I understand how to check the mouse position, but I dont know how to figur out if the Mousebutton 1 or two is pressed!?
It would be nice if someone could post the code to do it ;-)
add this to your main switch statement
case WM_LBUTTONDOWN:
blabla;
break;
case WM_RBUTTONDOWN:
blabla;
break;
case WM_LBUTTONUP:
blabla;
break;
case WM_RBUTTONUP:
blabla;
break;
obviously blabla is the code to handle them, use it like a keyboard routine
-TipTup
TipTup.Com
case WM_LBUTTONDOWN:
blabla;
break;
case WM_RBUTTONDOWN:
blabla;
break;
case WM_LBUTTONUP:
blabla;
break;
case WM_RBUTTONUP:
blabla;
break;
obviously blabla is the code to handle them, use it like a keyboard routine
-TipTup
TipTup.Com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement