Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scale relative mouse motion with OpenGL Logical Scaling
This makes it match the SDL_Render-based scaling, which does this. The SDL_MOUSE_RELATIVE_SCALING hint is also now supported for OpenGL scaling, again to match the SDL_Render path. It's enabled by default, though obviously is a no-op if OpenGL scaling is not used. Note that this _doesn't quite_ match the SDL_Render version, in that it's not accumulating the remainer. This'll be fixed in a follow-up commit.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters