LuciadCPillar C# 2024.0.08
|
Represents a mouse button in the controller API. More...
Public Member Functions | |
MouseButton (uint index) | |
Creates a new MouseButton with the given index. More... | |
bool | Equals (MouseButton other) |
override bool | Equals (object other) |
override int | GetHashCode () |
bool | IsLeft () |
Returns whether the button is the left mouse button. More... | |
bool | IsMiddle () |
Returns whether the button is the middle mouse button. More... | |
bool | IsRight () |
Returns whether the button is the right mouse button. More... | |
bool | IsUnknown () |
Returns whether the button is unknown. More... | |
Static Public Member Functions | |
static bool | operator!= (MouseButton lhs, MouseButton rhs) |
static bool | operator== (MouseButton lhs, MouseButton rhs) |
Properties | |
uint | Index [get] |
The mouse button index. More... | |
static MouseButton | Left = new MouseButton(1) [get] |
Returns the left mouse button. More... | |
static MouseButton | Middle = new MouseButton(2) [get] |
Returns the middle mouse button. More... | |
static MouseButton | Right = new MouseButton(3) [get] |
Returns the right mouse button. More... | |
static MouseButton | Unknown = new MouseButton(0) [get] |
Returns an unknown mouse button. More... | |
Represents a mouse button in the controller API.
|
inline |
Creates a new MouseButton
with the given index.
The mouse button index maps to mouse buttons as follows:
Unmapped values can be used to express a custom mouse button.
index | the mouse button index. |
|
inline |
|
inline |
|
inline |
|
inline |
Returns whether the button is the left mouse button.
|
inline |
Returns whether the button is the middle mouse button.
|
inline |
Returns whether the button is the right mouse button.
|
inline |
Returns whether the button is unknown.
|
inlinestatic |
|
inlinestatic |
|
get |
The mouse button index.
The mouse button index.
|
staticget |
Returns the left mouse button.
|
staticget |
Returns the middle mouse button.
|
staticget |
Returns the right mouse button.
|
staticget |
Returns an unknown mouse button.