Skip to content
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

Fixed touch normalized coordinates #8480

Merged
merged 1 commit into from Nov 5, 2023

Conversation

slouken
Copy link
Collaborator

@slouken slouken commented Nov 5, 2023

When converting normalized coordinates to pixel coordinates, the valid range is 0 to (width or height) - 1, and the pixel coordinate of width or height is past the edge of the window.

Fixes #2913

When converting normalized coordinates to pixel coordinates, the valid range is 0 to (width or height) - 1, and the pixel coordinate of width or height is past the edge of the window.

Fixes libsdl-org#2913
@slouken slouken merged commit 9302d77 into libsdl-org:main Nov 5, 2023
33 checks passed
@slouken slouken deleted the touch-normalized branch November 5, 2023 14:55
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.

[patch] Incorrect touch normalization using X11 XInput2
2 participants