-
Notifications
You must be signed in to change notification settings - Fork 44
Description
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);
}
}
}
`