示例#1
0
 /// <summary>
 /// // Get if key is toggled or untgled (useful to detect if capslock or nunlock is on)
 /// </summary>
 /// <param name="key">The keyboard key to evaluate</param>
 /// <returns>If the key is toggled or untoggled</returns>
 public KeyValue GetKeyValue(Keys key)
 {
     return(KeyStateCheck.GetToggled(key));
 }
示例#2
0
 /// <summary>
 /// Get if Key is Up or Down
 /// </summary>
 /// <param name="key">The keyboard key to evaluate</param>
 /// <returns>If the key is Up or Down</returns>
 public KeyState GetKeyState(Keys key)
 {
     return(KeyStateCheck.GetKeyState(key));
 }