Esempio n. 1
0
 internal void HandleNewPacket(MousePacket packet)
 {
     isAvailable = packet.IsAvailable;
     Position = new Point(packet.X, packet.Y);
     ScrollWheelValue = packet.ScrollWheelValue;
     LeftButton = packet.LeftButtonState;
     RightButton = packet.RightButtonState;
     MiddleButton = packet.MiddleButtonState;
     X1Button = packet.X1ButtonState;
     X2Button = packet.X2ButtonState;
 }
 private void AnalyseMousePacket(MousePacket packet)
 {
     if (packet != null && activeMouse != null)
         activeMouse.HandleNewPacket(packet);
 }