Anyone know how to get the mouse position?
GetCursorPos() Z.
[crystal-rain] [flipcode] [gamedev.net] [galahtech.com] [google]
thanks. another question: how do you get the position of a window, seeing as GetCursorPos gives you a global (whole screen position)? thanks, jmiller
You want the mouse position relative to a window, or a window's position? For the relative position of the mouse use ScreenToClient().
Laugh, and the world laughs with you. Cry, and you just water down your vodka. Take credit, not responsibility
Forum Rules