예제 #1
0
        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
        }
예제 #2
0
 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
     }
 }