Beispiel #1
0
 static bool IsNoKey()
 {
     return(CurrentKeyState.GetPressedKeys().Length == 0 && PreviousKeyState.GetPressedKeys().Length == 0);
 }
Beispiel #2
0
 static bool IsAnyKeyHeld()
 {
     return(CurrentKeyState.GetPressedKeys().Length > 0 && PreviousKeyState.GetPressedKeys().Length > 0);
 }