Anonymous's picture

Properties X and Y in class MouseDevice error

In the MouseDevice class the x property does not return the position in coordinates of screen, return signed relative motion


Comments

Comment viewing options

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

Sounds like a bug. Which OS and which OpenTK version are you using?

JTalton's picture

That's basically what I was seeing on XP. The mouse X and Y are the offset from where the mouse was located when the application initialized.

If your mouse was in the exact middle of the screen when the app starts, then you can get -screen/2 to screen/2 in mouse coordinates. No way to know where the mouse is really located.

the Fiddler.'s picture

Ah, ok. Working on it.