Fix stuck analog stick when a touch event is cancelled

This can happen if a stylus hover event is received while touching an OSC element
This commit is contained in:
Cameron Gutman committed 2022-09-21 01:11:45 -05:00
1 parent ac0e784417
commit 9c1a618b4a
1 file changed
+1
@@ -324,6 +324,7 @@ public class AnalogStick extends VirtualControllerElement {
break;
}
// up event (revoke touch)
case MotionEvent.ACTION_CANCEL:
case MotionEvent.ACTION_UP: {
setPressed(false);
break;