示例#1
0
    public static bool GetKeyUp(GamepadDpadButton button)
    {
        bool Now  = (_AllDpadData.States[(int)button] == XInputDotNetPure.ButtonState.Pressed);
        bool Prev = (_AllDpadData.Previous_States[(int)button] == XInputDotNetPure.ButtonState.Pressed);

        return(Now == false && Now != Prev);
    }
示例#2
0
    public static bool GetKeyUp(PlayerIndex controller_index, GamepadDpadButton button)
    {
        bool Now  = (GetDpad((int)controller_index).States[(int)button] == XInputDotNetPure.ButtonState.Pressed);
        bool Prev = (GetDpad((int)controller_index).Previous_States[(int)button] == XInputDotNetPure.ButtonState.Pressed);

        return(Now == false && Now != Prev);
    }
示例#3
0
 public static bool GetKey(GamepadDpadButton button)
 {
     return(_AllDpadData.States[(int)button] == XInputDotNetPure.ButtonState.Pressed);
 }
示例#4
0
 public static bool GetKey(PlayerIndex controller_index, GamepadDpadButton button)
 {
     return(GetDpad((int)controller_index).States[(int)button] == XInputDotNetPure.ButtonState.Pressed);
 }