Exemple #1
0
 internal static void StoreEvent(uint MouWhat, ref Event Event, SysMouseEvent SysMouseEvent)
 {
     LastButtons   = MouseButtons;
     MouseWhereX   = SysMouseEvent.smePos.X;
     MouseWhereY   = SysMouseEvent.smePos.Y;
     Event.What    = (int)MouWhat;
     Event.Buttons = MouseButtons;
     Event.Double  = LastDouble;
     Event.Where   = new Point(SysMouseEvent.smePos.X, SysMouseEvent.smePos.Y);
 }
Exemple #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);
     }
 }