Exemplo n.º 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);
    }
Exemplo n.º 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);
    }
Exemplo n.º 3
0
 public static bool GetKey(GamepadDpadButton button)
 {
     return(_AllDpadData.States[(int)button] == XInputDotNetPure.ButtonState.Pressed);
 }
Exemplo n.º 4
0
 public static bool GetKey(PlayerIndex controller_index, GamepadDpadButton button)
 {
     return(GetDpad((int)controller_index).States[(int)button] == XInputDotNetPure.ButtonState.Pressed);
 }