Skip to content

hwcomposer: Transform pointer coordinates according to screen rotation #35

Description

@dos1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions