Original Post
What's the best way to get the correct mouse position relative to the DirectX window? Meaning... if my I initialized DirectX to a window size of 800 x 600, how do I get actual coordinates where 0 is the top of the window and 600 is the bottom of the window, regardless of whether the window has been resized or maximized? I started by using Windows messages, which at least gave me something close... however, it was absolute screen coordinates and it wasn't relative to the DirectX window. So I switched over to DirectInput, which returned me relative coordinates. Since I don't have a start position of the mouse, this proved somewhat useless, so I changed to use absolute axis mode, which is giving me freaking huge numbers. Maybe I'm doing something wrong there. What's the best way to do this?