Advertisement

Determining mouse click in openGL window

Started by January 17, 2001 09:49 AM
2 comments, last by POSIX 24 years ago
I''m trying to determine if the mouse has been clicked in the openGL window; however, using case MK_LBUTTON in the switch(uMsg) block of code is unable to retrieve mouse click in the openGL window. What''s the best way to determine this? Thanks in advance! Sorry if this has been asked before...tried to search for topic, but keep getting a SQL Server error.
....WM_LBUTTONDOWN:
......begin
.........MousePosX:=LOWORD(lParam);
.........MousePosY:=HIWORD(lParam);
......end;

The above is what you should be using in your code. You must have mistyped the event =P

-- Wav
Advertisement
Urgh.. once again, please excuse the pascal code..

-Wav
this''ll see if the mouse button has been pushed since the last time u called this code
short result = GetAsyncKeyState(VK_LBUTTON);
if (result&0x10000000)
left_mouseButton = PUSHED;

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement