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