public override bool DispatchGenericMotionEvent(MotionEvent ev) { if (AndroidGamepad.IsJoystickEvent(ev)) { AndroidGamepad.GetPad(GamepadId.Pad1).HandleJoystickEvent(ev); return(true); //Handled } return(base.DispatchGenericMotionEvent(ev)); //See what base has to say }
public override bool DispatchKeyEvent(KeyEvent e) { if (AndroidGamepad.IsJoystickEvent(e)) { AndroidGamepad.GetPad(GamepadId.Pad1).HandleJoystickEvent(e); return(true); //Handled } else { return(base.DispatchKeyEvent(e)); //See what base has to say } }