Defines the event data for MouseDevice.ButtonDown and MouseDevice.ButtonUp events.
More...
|
MouseButton | Button [get, set] |
| The mouse button for the event. More...
|
|
bool | IsPressed [get, set] |
| Gets a System.Boolean representing the state of the mouse button for the event. More...
|
|
int | X [get, set] |
| Gets the X position of the mouse for the event. More...
|
|
int | Y [get, set] |
| Gets the Y position of the mouse for the event. More...
|
|
Point | Position [get] |
| Gets a System.Drawing.Points representing the location of the mouse for the event. More...
|
|
Defines the event data for MouseDevice.ButtonDown and MouseDevice.ButtonUp events.
Do not cache instances of this type outside their event handler. If necessary, you can clone an instance using the MouseButtonEventArgs(MouseButtonEventArgs) constructor.
OpenTK.Input.MouseButtonEventArgs.MouseButtonEventArgs |
( |
| ) |
|
OpenTK.Input.MouseButtonEventArgs.MouseButtonEventArgs |
( |
int |
x, |
|
|
int |
y, |
|
|
MouseButton |
button, |
|
|
bool |
pressed |
|
) |
| |
Constructs a new MouseButtonEventArgs instance.
- Parameters
-
x | The X position. |
y | The Y position. |
button | The mouse button for the event. |
pressed | The current state of the button. |
The mouse button for the event.
bool OpenTK.Input.MouseButtonEventArgs.IsPressed |
|
getset |
Gets a System.Boolean representing the state of the mouse button for the event.