mono / opentk

OpenTK is a set of bindings to OpenGL, OpenCL and OpenAL. This is not the main repository, just a temporary import to allow Mono developers to make changes to this module. Please do not contribute changes here, contribute them to the upstream maintainers at http://www.opentk.com
http://www.opentk.com
115 stars 66 forks source link

Mouse position aligned to screen #12

Open paewie opened 8 years ago

paewie commented 8 years ago

I was updating MonoGame DesktopGL to the newest Development snapshot when experiencing the following: My Mouse.GetState() call returned the mouse's position relative to the Top-Left corner of the screen, not the GameWindow as before and expected. Tracking this further I ended up with OpenTK.Input.Mouse.GetCursorState() returning this misaligned position which is simply copied to the MonoGame-struct's variables. Therefore I'm assuming this is a bug or whatever within this certain function. I was able to reproduce this exact behavior on two completely different Windows 10 x64 machines, no idea whether it appears on other systems, too. Let me know if I can help or if it's my problem, regards