mirror of
https://github.com/brunodev85/winlator.git
synced 2024-11-26 22:50:32 +00:00
commit
f93c571468
@ -398,6 +398,10 @@ public class InputControlsView extends View {
|
|||||||
for (ControlElement element : profile.getElements()) if (element.handleTouchUp(pointerId)) handled = true;
|
for (ControlElement element : profile.getElements()) if (element.handleTouchUp(pointerId)) handled = true;
|
||||||
if (!handled) touchpadView.onTouchEvent(event);
|
if (!handled) touchpadView.onTouchEvent(event);
|
||||||
break;
|
break;
|
||||||
|
case MotionEvent.ACTION_CANCEL:
|
||||||
|
for (ControlElement element : profile.getElements()) if (element.handleTouchUp(pointerId)) handled = true;
|
||||||
|
if (!handled) touchpadView.onTouchEvent(event);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -120,6 +120,9 @@ public class TouchpadView extends View {
|
|||||||
numFingers--;
|
numFingers--;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case MotionEvent.ACTION_CANCEL:
|
||||||
|
numFingers = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user