Beispiel #1
0
 private void m_KeyPressed(object sender, InputDevice.KeyControlEventArgs e) {
     
     if ((int)e.Keyboard.deviceHandle == lastDevice)
         count++;
     else {
         count = 0;
         lastDevice = (int)e.Keyboard.deviceHandle;
     }
     if (count == 15) {
         Output = e.Keyboard;
         found = true;
     }
 }
Beispiel #2
0
 private void m_KeyPressed(object sender, InputDevice.KeyControlEventArgs e)
 {
     if ((int)e.Keyboard.deviceHandle == lastDevice)
     {
         count++;
     }
     else
     {
         count      = 0;
         lastDevice = (int)e.Keyboard.deviceHandle;
     }
     if (count == 15)
     {
         Output = e.Keyboard;
         found  = true;
     }
 }