public bool ActionUp(InputActions action) { if (!IsPressed.ContainsKey(action)) { return(false); } return(!IsPressed[action]); }
public bool ActionReleased(InputActions action) { if (!IsPressed.ContainsKey(action) || !WasPressed.ContainsKey(action)) { return(false); } return(!IsPressed[action] && WasPressed[action]); }
public bool ActionDown(InputActions action) { return(IsPressed.ContainsKey(action) && IsPressed[action]); }