Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track fake window mouse position in relative mode.
This makes Wolf4SDL's input usable in fullscreen, which wants to grab/hide the mouse (what SDL2 calls "relative mode"), but it also uses SDL_GetMouseState() and SDL_WarpMouse() to keep centering the mouse and querying for mouse position relative to that center point. Fixes #16.
- Loading branch information
Showing
1 changed file
with
43 additions
and
3 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