Original Post
Per Nehe''s Picking and Alpha Blending tutorial, I tried to implement some of the mouse handling code (capturing WM messages). Now, for some reason, I can capture movements of the mouse, and make my loaded 3D model move around based on it''s movements, but I can''t for the life of me capture mouse clicks!
Here''s the case statement I used:
case WM_LBUTTONDOWN
{
Shoot();
}
And yeah, it''s in the right place, as the mouse movement works. That looks like this:
case WM_MOUSEMOVE
{
x_position = LOWORD(lParam);
y_position = HIWORD(lParam);
}
As far as I know, I''ve set up the WM_LBUTTONDOWN thing right, but the Shoot() event never occurs (and I know it works). Is there anything else I need to include to make it work?