JTalton's picture

Mouse Position (Windows)

When I get the Mouse.X and Mouse.Y they are not the absolute positions of the mouse in the GameWindow, but instead the position relative to where my mouse was located when the GameWindow initialized. Is there a way to get the mouse position in the GameWindow?


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler.'s picture

Actually, this is the "correct" behavior according to the (missing) documentation: "MouseDevice.X: Gets an integer representing the absolute x position of the pointer, in screen pixel coordinates." It would be nice to have window coordinates available, will add that functionality when I can find some time.