public bool GetButtonUp(int numButton)
        {
            MyButtonEvents b = TryGetButton(numButton);

            if (b != null)
            {
                return(b.buttonUp);
            }

            return(false);
        }
 private MyButtonEvents TryGetButton(int numButton)
 {
     if (ControladorDeJoystick.cj != null)
     {
         MyButtonEvents b = ControladorDeJoystick.cj.GetButton(numButton);
         return(b);
     }
     else
     {
         return(null);
     }
 }