mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-16 22:01:14 +00:00
Only exclude touch events from non-view processing
Mouse events that go out of the StreamView area are okay
This commit is contained in:
@@ -1688,6 +1688,12 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@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