Example #1
0
 public static bool SysTVGetKeyEvent(ref SysKeyEvent Event)
 {
     W32Kbd.KbdUpdateEventQueues();
     if (W32Kbd.SysKeyCount == 0)
     {
         return(false);
     }
     else
     {
         W32Kbd.SysKeyCount--;
         Event = W32Kbd.SysKeyQue[0];
         for (int i = W32Kbd.SysKeyCount; i > 0; i--)
         {
             W32Kbd.SysKeyQue[i] = W32Kbd.SysKeyQue[i - 1];
         }
         return(true);
     }
 }
Example #2
0
 public static bool SysTVGetMouseEvent(out SysMouseEvent Event)
 {
     Event = new SysMouseEvent();
     W32Kbd.KbdUpdateEventQueues();
     if (W32Kbd.SysMouCount == 0)
     {
         return(false);
     }
     else
     {
         W32Kbd.SysMouCount--;
         Event = W32Kbd.SysMouQue[0];
         for (int i = W32Kbd.SysMouCount; i > 0; i--)
         {
             W32Kbd.SysMouQue[i] = W32Kbd.SysMouQue[i - 1];
         }
         return(true);
     }
 }