Skip to content

SDL: Fix bug where the mouse got stuck in relative mode when mapping mouse inputs #20612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2025

Conversation

hrydgard
Copy link
Owner

Unlike Windows, with SDL we need to switch the mouse into relative mode to get relative input, which hides the cursor. We do this in-game if mouse control is enabled, and during control mapping.

However in the latter case, we failed to disable it properly when exiting mapping. And also we accidentally saved the state across sessions.

Both problems fixed. Thanks to Aetheros on Discord for detailed reporting.

@hrydgard hrydgard added this to the v1.19.3 milestone Jul 10, 2025
@hrydgard hrydgard added SDL2 Issue on SDL (or Qt in SDL code) but not all ports. User Interface PPSSPP's own user interface / UX labels Jul 10, 2025
@hrydgard hrydgard force-pushed the mouse-mapping-fix branch from 1eb399c to 263d0b3 Compare July 10, 2025 18:29
@hrydgard hrydgard merged commit 791aee6 into master Jul 10, 2025
21 checks passed
@hrydgard hrydgard deleted the mouse-mapping-fix branch July 10, 2025 18:49
hrydgard added a commit that referenced this pull request Jul 11, 2025
SDL: Fix bug where the mouse got stuck in relative mode when mapping mouse inputs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SDL2 Issue on SDL (or Qt in SDL code) but not all ports. User Interface PPSSPP's own user interface / UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant