The Open Toolkit library
1.0
|
Encapsulates the state of a mouse device. More...
Inherits IEquatable< MouseState >.
Public Member Functions | |
bool | IsButtonDown (MouseButton button) |
Gets a System.Boolean indicating whether this button is down. More... | |
bool | IsButtonUp (MouseButton button) |
Gets a System.Boolean indicating whether this button is up. More... | |
override bool | Equals (object obj) |
Compares to an object instance for equality. More... | |
override int | GetHashCode () |
Generates a hashcode for the current instance. More... | |
bool | Equals (MouseState other) |
Compares two MouseState instances. More... | |
Static Public Member Functions | |
static bool | operator== (MouseState left, MouseState right) |
Checks whether two MouseState instances are equal. More... | |
static bool | operator!= (MouseState left, MouseState right) |
Checks whether two MouseState instances are not equal. More... | |
static void | ValidateOffset (int offset) |
Properties | |
bool | this[MouseButton button] [get, set] |
Gets a System.Boolean indicating whether the specified OpenTK.Input.MouseButton is pressed. More... | |
int | Wheel [get] |
Gets the absolute wheel position in integer units. To support high-precision mice, it is recommended to use WheelPrecise instead. More... | |
float | WheelPrecise [get, set] |
Gets the absolute wheel position in floating-point units. More... | |
int | X [get, set] |
Gets an integer representing the absolute x position of the pointer, in window pixel coordinates. More... | |
int | Y [get, set] |
Gets an integer representing the absolute y position of the pointer, in window pixel coordinates. More... | |
ButtonState | LeftButton [get] |
Gets a System.Boolean indicating whether the left mouse button is pressed. This property is intended for XNA compatibility. More... | |
ButtonState | MiddleButton [get] |
Gets a System.Boolean indicating whether the middle mouse button is pressed. This property is intended for XNA compatibility. More... | |
ButtonState | RightButton [get] |
Gets a System.Boolean indicating whether the right mouse button is pressed. This property is intended for XNA compatibility. More... | |
ButtonState | XButton1 [get] |
Gets a System.Boolean indicating whether the first extra mouse button is pressed. This property is intended for XNA compatibility. More... | |
ButtonState | XButton2 [get] |
Gets a System.Boolean indicating whether the second extra mouse button is pressed. This property is intended for XNA compatibility. More... | |
int | ScrollWheelValue [get] |
Gets the absolute wheel position in integer units. This property is intended for XNA compatibility. To support high-precision mice, it is recommended to use WheelPrecise instead. More... | |
bool | IsConnected [get, set] |
Encapsulates the state of a mouse device.
override bool OpenTK.Input.MouseState.Equals | ( | object | obj | ) |
Compares to an object instance for equality.
obj | The System.Object to compare to. |
bool OpenTK.Input.MouseState.Equals | ( | MouseState | other | ) |
Compares two MouseState instances.
other | The instance to compare two. |
override int OpenTK.Input.MouseState.GetHashCode | ( | ) |
Generates a hashcode for the current instance.
bool OpenTK.Input.MouseState.IsButtonDown | ( | MouseButton | button | ) |
Gets a System.Boolean indicating whether this button is down.
button | The OpenTK.Input.MouseButton to check. |
bool OpenTK.Input.MouseState.IsButtonUp | ( | MouseButton | button | ) |
Gets a System.Boolean indicating whether this button is up.
button | The OpenTK.Input.MouseButton to check. |
|
static |
Checks whether two MouseState instances are not equal.
left | A MouseState instance. |
right | A MouseState instance. |
|
static |
Checks whether two MouseState instances are equal.
left | A MouseState instance. |
right | A MouseState instance. |
|
get |
Gets a System.Boolean indicating whether the left mouse button is pressed. This property is intended for XNA compatibility.
|
get |
Gets a System.Boolean indicating whether the middle mouse button is pressed. This property is intended for XNA compatibility.
|
get |
Gets a System.Boolean indicating whether the right mouse button is pressed. This property is intended for XNA compatibility.
|
get |
Gets the absolute wheel position in integer units. This property is intended for XNA compatibility. To support high-precision mice, it is recommended to use WheelPrecise instead.
|
getset |
Gets a System.Boolean indicating whether the specified OpenTK.Input.MouseButton is pressed.
button | The OpenTK.Input.MouseButton to check. |
|
get |
Gets the absolute wheel position in integer units. To support high-precision mice, it is recommended to use WheelPrecise instead.
|
getset |
Gets the absolute wheel position in floating-point units.
|
getset |
Gets an integer representing the absolute x position of the pointer, in window pixel coordinates.
|
get |
Gets a System.Boolean indicating whether the first extra mouse button is pressed. This property is intended for XNA compatibility.
|
get |
Gets a System.Boolean indicating whether the second extra mouse button is pressed. This property is intended for XNA compatibility.
|
getset |
Gets an integer representing the absolute y position of the pointer, in window pixel coordinates.