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

Fix touchscreen input related functions on Android #2702

Merged
merged 1 commit into from
Sep 17, 2022

Conversation

deniska
Copy link
Contributor

@deniska deniska commented Sep 17, 2022

Fix display -> screen coordinate conversion for android platform and move it to the platform event handling code, simplifying GetTouchPosition() function implementation.

Fixes previous behavior on Android which is reporting touchscreen input coordinates as a number in range from 0 to 1 to reporting values in screen coordinates.

Tested with native resolution and upscaling. Downscaling currently seems to have another bug somewhere deeper in rendering setup.

Fix display -> screen coordinate conversion for android platform and
move it to the platform event handling code, simplifying
GetTouchPosition() function implementation.
@raysan5 raysan5 merged commit 8e57c8a into raysan5:master Sep 17, 2022
@raysan5
Copy link
Owner

raysan5 commented Sep 17, 2022

@deniska Thanks for the review!

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