Exemplo n.º 1
0
        public void handleMouseClickEvent(NetPeer peer, Network.Messages.Connection.OneWay.MouseClickMessage message)
        {
            NetPeer wpeer;

            if (_hostPeers.TryGetValue(message.HostSystemId, out wpeer))
            {
                wpeer.Send(_messageHandler.encodeMessage(message), SendOptions.Unreliable);
            }
        }
Exemplo n.º 2
0
 public void handleMouseClick(NetPeer peer, Network.Messages.Connection.OneWay.MouseClickMessage message)
 {
     if (OnMouseClick != null)
     {
         OnMouseClick(this, new MouseClickEventArgs {
             Down = message.Down, Up = message.Up, DoubleClick = message.DoubleClick, X = message.X, Y = message.Y, Button = (MouseClickEventArgs.ButtonType)message.Button
         });
     }
 }