mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 19:13:03 +00:00
Ignore inputs when the on-screen controls are in configuration mode
This commit is contained in:
parent
b58ac367ee
commit
49ddfa573d
@ -666,6 +666,12 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
// This case is for touch-based input devices
|
// This case is for touch-based input devices
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (virtualController != null &&
|
||||||
|
virtualController.getControllerMode() == VirtualController.ControllerMode.Configuration) {
|
||||||
|
// Ignore presses when the virtual controller is in configuration mode
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
int actionIndex = event.getActionIndex();
|
int actionIndex = event.getActionIndex();
|
||||||
|
|
||||||
int eventX = (int)event.getX(actionIndex);
|
int eventX = (int)event.getX(actionIndex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user