Tutorial 23 - Mousesupport

Started by
0 comments, last by SnAkE 23 years, 9 months ago
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 ;-)
Advertisement
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

This topic is closed to new replies.

Advertisement