Exemple #1
0
 public bool IsKeyPressed(Keybinds.Actions action)
 {
     if (currentKeyboardState.IsKeyDown(Keybinds.GetKey(action)))
     {
         return(true);
     }
     return(false);
 }
Exemple #2
0
 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);
 }