Mouse coordinates are too big
-
Im using dinput.h's GetDeviceState to retrieve the current mouse cursor position. Why do I get coordinates returned in the billions??? I get the same result using ints and longs for x&y. All I want are pixel coordinates within the range of my window app. Any help would be much appreciated Thanks, Rob
-
Im using dinput.h's GetDeviceState to retrieve the current mouse cursor position. Why do I get coordinates returned in the billions??? I get the same result using ints and longs for x&y. All I want are pixel coordinates within the range of my window app. Any help would be much appreciated Thanks, Rob
Says MSDN- > The mouse is a relative-axis device, so the absolute axis positions for mouse axes are simply accumulated relative motion. Therefore, the value of the absolute axis position is not meaningful except in comparison with other absolute axis positions. Why don't you just handle WM_MOUSEMOVE events instead? Potentially with a SetCapture() first. Signature space for rent. Apply by email to....
-
Im using dinput.h's GetDeviceState to retrieve the current mouse cursor position. Why do I get coordinates returned in the billions??? I get the same result using ints and longs for x&y. All I want are pixel coordinates within the range of my window app. Any help would be much appreciated Thanks, Rob