diff --git a/Source/OpenTK/Input/MouseScrollWheel.cs b/Source/OpenTK/Input/MouseScrollWheel.cs index 69fd17f3..2be06b67 100644 --- a/Source/OpenTK/Input/MouseScrollWheel.cs +++ b/Source/OpenTK/Input/MouseScrollWheel.cs @@ -72,7 +72,7 @@ namespace OpenTK.Input /// A that represents the current . public override string ToString() { - return string.Format("[MouseScrollWheel: X={0}, Y={1}]", X, Y); + return string.Format("[X={0:0.00}, Y={1:0.00}]", X, Y); } /// diff --git a/Source/OpenTK/Input/MouseState.cs b/Source/OpenTK/Input/MouseState.cs index 5b12fe2d..557aa1c1 100644 --- a/Source/OpenTK/Input/MouseState.cs +++ b/Source/OpenTK/Input/MouseState.cs @@ -257,6 +257,17 @@ namespace OpenTK.Input return buttons.GetHashCode() ^ X.GetHashCode() ^ Y.GetHashCode() ^ scroll.GetHashCode(); } + /// + /// Returns a that represents the current . + /// + /// A that represents the current . + public override string ToString() + { + string b = Convert.ToString(buttons, 2).PadLeft(10, '0'); + return String.Format("[MouseState: X={0}, Y={1}, Scroll={2}, Buttons={3}, IsConnected={4}]", + X, Y, Scroll, b, IsConnected); + } + #endregion #region Internal Members