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