Merge pull request #47 from kazimaruf991/main

Fixed touch pad issue
This commit is contained in:
BrunoSX authored and GitHub committed 2024-01-23 11:21:10 -03:00
commit f93c571468
2 files changed
+7

No files matched your search

@@ -398,6 +398,10 @@ public class InputControlsView extends View {
for (ControlElement element : profile.getElements()) if (element.handleTouchUp(pointerId)) handled = true;
if (!handled) touchpadView.onTouchEvent(event);
break;
case MotionEvent.ACTION_CANCEL:
for (ControlElement element : profile.getElements()) if (element.handleTouchUp(pointerId)) handled = true;
if (!handled) touchpadView.onTouchEvent(event);
break;
}
}
return true;
@@ -120,6 +120,9 @@ public class TouchpadView extends View {
numFingers--;
}
break;
case MotionEvent.ACTION_CANCEL:
numFingers = 0;
break;
}
return true;