mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-02-16 10:31:07 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user