mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-23 08:46:40 +00:00
Don't handle motion events outside of Views to avoid spurious stream input while using OSC
This commit is contained in:
@@ -1688,18 +1688,6 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onTouchEvent(MotionEvent event) {
|
|
||||||
return handleMotionEvent(null, event) || super.onTouchEvent(event);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onGenericMotionEvent(MotionEvent event) {
|
|
||||||
return handleMotionEvent(null, event) || super.onGenericMotionEvent(event);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void updateMousePosition(View view, MotionEvent event) {
|
private void updateMousePosition(View view, MotionEvent event) {
|
||||||
// X and Y are already relative to the provided view object
|
// X and Y are already relative to the provided view object
|
||||||
float eventX = event.getX(0);
|
float eventX = event.getX(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user