mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-25 21:40:11 +00:00
Fix unacknowledged motion events causing phantom d-pad events
This commit is contained in:
1 parent
8a40892865
commit
efdd1e2046
1 file changed
+3
-1
@@ -351,7 +351,9 @@ public class Game extends Activity implements OnGenericMotionListener, OnTouchLi
|
|||||||
@Override
|
@Override
|
||||||
public boolean onGenericMotionEvent(MotionEvent event) {
|
public boolean onGenericMotionEvent(MotionEvent event) {
|
||||||
if ((event.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
|
if ((event.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
|
||||||
controllerHandler.handleMotionEvent(event);
|
if (controllerHandler.handleMotionEvent(event)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0)
|
else if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user