Skip to content

Pass xrel/yrel if SDL relative mouse mode is enabled#282

Closed
oznogon wants to merge 1 commit into
daid:masterfrom
oznogon:fix-relative-mouse-mode
Closed

Pass xrel/yrel if SDL relative mouse mode is enabled#282
oznogon wants to merge 1 commit into
daid:masterfrom
oznogon:fix-relative-mouse-mode

Conversation

@oznogon

@oznogon oznogon commented Dec 13, 2025

Copy link
Copy Markdown
Contributor

If SDL relative mouse mode is enabled, SP doesn't send the xrel/yrel delta values it generates and shouldn't map those values to pixel coords. Detect if relative mouse mode is enabled and pass the expected values.

Prereq for captured mouselook in Cinematic View without redundantly calculating mouse movement deltas from pixel coords and preventing the cursor from escaping the window.

@daid

daid commented Dec 18, 2025

Copy link
Copy Markdown
Owner

This is just weird abuse of interfaces. The onPointer functions expect screen coordinates and not relative movements. If we want relative movements we should just have a new interface for that.

@daid daid closed this Dec 18, 2025
@oznogon
oznogon deleted the fix-relative-mouse-mode branch December 18, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants