Exemple #1
0
 private bool IsKeyToggled(Keys key)
 {
     return((NativeMethods.GetKeyState((int)key) & 1) == 1);
 }
Exemple #2
0
 private bool IsKeyDown(Keys key)
 {
     return((NativeMethods.GetKeyState((int)key) & 0x8000) != 0);
 }