コード例 #1
0
ファイル: RemoteMouse.cs プロジェクト: hillwhite/DeltaEngine
 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;
 }
コード例 #2
0
 private void AnalyseMousePacket(MousePacket packet)
 {
     if (packet != null && activeMouse != null)
         activeMouse.HandleNewPacket(packet);
 }