The Open Toolkit library
1.0
|
Represents a mouse device and provides methods to query its status. More...
Public Member Functions | |
override int | GetHashCode () |
Calculates the hash code for this instance. More... | |
override string | ToString () |
Returns a System.String that describes this instance. More... | |
Properties | |
string | Description [get, set] |
Gets a string describing this MouseDevice. More... | |
InputDeviceType | DeviceType [get] |
Gets a value indicating the InputDeviceType of this InputDevice. More... | |
int | NumberOfButtons [get, set] |
Gets an integer representing the number of buttons on this MouseDevice. More... | |
int | NumberOfWheels [get, set] |
Gets an integer representing the number of wheels on this MouseDevice. More... | |
IntPtr | DeviceID [get, set] |
Gets an IntPtr representing a device dependent ID. More... | |
int | Wheel [get, set] |
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] |
Gets an integer representing the absolute x position of the pointer, in window pixel coordinates. More... | |
int | Y [get] |
Gets an integer representing the absolute y position of the pointer, in window pixel coordinates. More... | |
bool | this[MouseButton button] [get, set] |
Gets a System.Boolean indicating the state of the specified MouseButton. More... | |
int | WheelDelta [get] |
Gets an integer representing the relative wheel movement. More... | |
int | XDelta [get] |
Gets an integer representing the relative x movement of the pointer, in pixel coordinates. More... | |
int | YDelta [get] |
Gets an integer representing the relative y movement of the pointer, in pixel coordinates. More... | |
Properties inherited from OpenTK.Input.IInputDevice | |
string | Description [get] |
Gets a System.String with a unique description of this IInputDevice instance. More... | |
InputDeviceType | DeviceType [get] |
Gets an OpenTK.Input.InputDeviceType value, representing the device type of this IInputDevice instance. More... | |
Events | |
EventHandler< MouseMoveEventArgs > | Move = delegate { } |
Occurs when the mouse's position is moved. More... | |
EventHandler < MouseButtonEventArgs > | ButtonDown = delegate { } |
Occurs when a button is pressed. More... | |
EventHandler < MouseButtonEventArgs > | ButtonUp = delegate { } |
Occurs when a button is released. More... | |
EventHandler< MouseWheelEventArgs > | WheelChanged = delegate { } |
Occurs when one of the mouse wheels is moved. More... | |
Represents a mouse device and provides methods to query its status.
override int OpenTK.Input.MouseDevice.GetHashCode | ( | ) |
Calculates the hash code for this instance.
override string OpenTK.Input.MouseDevice.ToString | ( | ) |
Returns a System.String that describes this instance.
|
getset |
Gets a string describing this MouseDevice.
|
getset |
Gets an IntPtr representing a device dependent ID.
|
get |
Gets a value indicating the InputDeviceType of this InputDevice.
|
getset |
Gets an integer representing the number of buttons on this MouseDevice.
|
getset |
Gets an integer representing the number of wheels on this MouseDevice.
|
getset |
Gets a System.Boolean indicating the state of the specified MouseButton.
button | The MouseButton to check. |
|
getset |
Gets the absolute wheel position in integer units. To support high-precision mice, it is recommended to use WheelPrecise instead.
|
get |
Gets an integer representing the relative wheel movement.
|
getset |
Gets the absolute wheel position in floating-point units.
|
get |
Gets an integer representing the absolute x position of the pointer, in window pixel coordinates.
|
get |
Gets an integer representing the relative x movement of the pointer, in pixel coordinates.
|
get |
Gets an integer representing the absolute y position of the pointer, in window pixel coordinates.
|
get |
Gets an integer representing the relative y movement of the pointer, in pixel coordinates.
EventHandler<MouseButtonEventArgs> OpenTK.Input.MouseDevice.ButtonDown = delegate { } |
Occurs when a button is pressed.
EventHandler<MouseButtonEventArgs> OpenTK.Input.MouseDevice.ButtonUp = delegate { } |
Occurs when a button is released.
EventHandler<MouseMoveEventArgs> OpenTK.Input.MouseDevice.Move = delegate { } |
Occurs when the mouse's position is moved.
EventHandler<MouseWheelEventArgs> OpenTK.Input.MouseDevice.WheelChanged = delegate { } |
Occurs when one of the mouse wheels is moved.