protected void HandleGenericMotion(object sender, View.GenericMotionEventArgs e)
 {
     if (shouldHandleEvent(e.Event))
     {
         OnGenericMotion(e.Event);
         e.Handled = true;
     }
 }
示例#2
0
 private void HandleGenericMotion(object sender, View.GenericMotionEventArgs e)
 {
     if ((e.Event.Source & InputSourceType.Gamepad) == InputSourceType.Gamepad ||
         (e.Event.Source & InputSourceType.Joystick) == InputSourceType.Joystick)
     {
         FlatRedBallAndroid.Input.AndroidGamePadManager.OnGenericMotionEvent(e.Event);
     }
 }