Example #1
0
 /// <summary>
 /// Checks if the specified key (such as alt, ctrl, shift)
 /// is down
 /// </summary>
 /// <param name="vKey">key to check</param>
 /// <returns>true if it is</returns>
 public static bool IsKeyDown(Keys vKey)
 {
     return(0 != (User32Interop.GetAsyncKeyState((int)vKey) & 0x8000));
 }