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

hwcomposer: Transform pointer coordinates according to screen rotation #35

Open
dos1 opened this issue Aug 30, 2022 · 0 comments
Open

Comments

@dos1
Copy link
Contributor

dos1 commented Aug 30, 2022

When the Android screen is rotated (for example, by running a landscape game on a portrait physical screen), mouse input isn't translated correctly - the pointer moves relative to Android's screen instead of actual screen and (unless the window is square) part of the Android screen isn't accessible at all.

To fix this, HWC should translate input pointer coordinates before sending them to InputFlinger.

Touch input isn't affected. Haven't tested tablet input.

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

No branches or pull requests

1 participant