Fix unacknowledged motion events causing phantom d-pad events

This commit is contained in:
Cameron Gutman 2014-03-31 18:37:53 -04:00
parent 8a40892865
commit efdd1e2046

View File

@ -351,7 +351,9 @@ public class Game extends Activity implements OnGenericMotionListener, OnTouchLi
@Override
public boolean onGenericMotionEvent(MotionEvent event) {
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)
{