forked from QW-Group/ezquake-source
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INPUT: 'in_raw 0' ignores mouse motion events
This has been fixed/broken/fixed/broken on different platforms for a while now. in_raw 0 relies on SDL_WarpMouseInWindow... on Windows the SDL_MOTION event is picked up in subsequent event pump, on Mac it is picked up immediately after (leading to immediately setting mx to 0 and in_raw 0 appearing to not work in-game). Now using state rather than motion events if using in_raw, which avoids our SDL_Warp() producing an event that we then have to try to ignore Might help with QW-Group#489?
- Loading branch information
Showing
3 changed files
with
40 additions
and
20 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
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
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