Archived

This topic is now archived and is closed to further replies.

Sanoz0r

mouse coords

Recommended Posts

You better stay away from message-based input and use Windows API functions instead.

Look up these functions:
GetCursorPos()
SetCursorPos()
GetAsyncKeyState()

They are easy to use and will report the hardware state at any given time.

Share this post


Link to post
Share on other sites
POINT cursor_point;
GetCursorPos(&cursor_point);
ScreenToClient(window.hWnd, &cursor_point);

should do what you want (I think.)

[edited by - ch1pz on January 24, 2004 5:31:49 PM]

Share this post


Link to post
Share on other sites
Look for some info on the gluUnProject function...


Windows 95 - 32 bit extensions and a graphical shell for a 16 bit patch
to an 8 bit operating system originally coded for a 4 bit microprocessor,
written by a 2 bit company that can''t stand 1 bit of competition.

Share this post


Link to post
Share on other sites