Esempio n. 1
0
 public static bool IsKeyPressed(System.Windows.Forms.Keys keys)
 {
     return(0 != (NativeImport.GetAsyncKeyState((int)keys) & 0x8000));
 }
Esempio n. 2
0
 public static bool IsKeyPressed(uint keys)
 {
     return(0 != (NativeImport.GetAsyncKeyState((int)keys) & 0x8000));
 }