public bool IsKeyPressed(Keybinds.Actions action) { if (currentKeyboardState.IsKeyDown(Keybinds.GetKey(action))) { return(true); } return(false); }
public bool IsKeyToggled(Keybinds.Actions action) { //toggle from up to down if (currentKeyboardState.IsKeyDown(Keybinds.GetKey(action)) && previousKeyboardState.IsKeyUp(Keybinds.GetKey(action))) { return(true); } return(false); }