Skip to content

There is a serious problem with the new fake_touch #43

@zusso1

Description

@zusso1

First of all, I am not a developer or engineer.
So I am sorry if I am saying something wrong.

I have a problem with the new Fake_touch applied in the following patch
0040-Fake-touch-inputs-for-select-apps.patch

If you enable Fake_touch from this change, all analog inputs on the gamepad die.

*Tested on arm64 and x86_64 versions.

Test build with the following changes and all analog inputs work.

`
if (mFakeClickAsTouch && q.mEvent instanceof MotionEvent) {
MotionEvent ev = (MotionEvent) q.mEvent;
int source = ev.getSource();
int action = ev.getAction();
if ((source & InputDevice.SOURCE_MOUSE) == InputDevice.SOURCE_MOUSE ||
source == InputDevice.SOURCE_UNKNOWN) {
if (action == MotionEvent.ACTION_MOVE ||
action == MotionEvent.ACTION_DOWN ||
action == MotionEvent.ACTION_UP) {
ev.setSource(InputDevice.SOURCE_TOUCHSCREEN);
}
}
}

`

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