Skip to main content
gamedev.net
🔒 Locked

Mouse Problem

Started by Feblex Dec 12, 2002 at 4:19 PM 0 replies 200+ views
Original Post
Feblex
Feblex
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?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.