\r
\r
/// <summary>\r
- /// Get the chat messages that have been receive since the last time this\r
+ /// Get the chat messages that have been received since the last time this\r
/// method was called.\r
/// </summary>\r
/// <returns>List container of the chat messages.</returns>\r
/// <param name="recipient">The gamer to receive the message.</param>\r
public void SendChat(String message, NetworkGamer recipient)\r
{\r
+ Debug.Assert(recipient != null && !recipient.IsDisposed);\r
+\r
WriteChatPacket(message);\r
LocalGamer.SendData(mPacketWriter, SendDataOptions.ReliableInOrder, recipient);\r
}\r
events.Add(new MouseButtonEventInfo(LocalGamer, frameOfApplication, MouseButton.Left, leftButtonPressed));\r
}\r
\r
- bool rightButtonPressed = mouseState.LeftButton == ButtonState.Pressed;\r
+ bool rightButtonPressed = mouseState.RightButton == ButtonState.Pressed;\r
if (rightButtonPressed != mLastRightButtonPressed)\r
{\r
events.Add(new MouseButtonEventInfo(LocalGamer, frameOfApplication, MouseButton.Right, rightButtonPressed));\r
}\r
\r
- bool middleButtonPressed = mouseState.LeftButton == ButtonState.Pressed;\r
+ bool middleButtonPressed = mouseState.MiddleButton == ButtonState.Pressed;\r
if (middleButtonPressed != mLastMiddleButtonPressed)\r
{\r
events.Add(new MouseButtonEventInfo(LocalGamer, frameOfApplication, MouseButton.Middle, middleButtonPressed));\r