The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
If a window is bigger than the screen, mouse coords wrong?
Sparks


Joined: 01 Jun 2013
Posts: 47
If a user makes a window that is bigger than their screen, like for example, they have a 1920x1080 monitor, and then they open a 1600x1200 window what happens is, the mouse coordinates are skewed so the location where the mouse is pointing at, is not where SDL 2 thinks the mouse is pointing at.

This makes trying to click on "buttons" difficult because of the difference between what the user sees where the pointer is at, and where SDL 2 thinks the pointer is at.
This was tried on windows 7, 8, and 10, with the latest SDL 2 RC that is out.

This seems like a bug.