LuciadCPillar C# 2023.1.04
|
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 () |
bool | IsMiddle () |
bool | IsRight () |
bool | IsUnknown () |
Static Public Member Functions | |
static bool | operator!= (MouseButton lhs, MouseButton rhs) |
static bool | operator== (MouseButton lhs, MouseButton rhs) |
Properties | |
uint | Index [get] |
static MouseButton | Left = new MouseButton(1) [get] |
static MouseButton | Middle = new MouseButton(2) [get] |
static MouseButton | Right = new MouseButton(3) [get] |
static MouseButton | Unknown = new MouseButton(0) [get] |
Represents a mouse button in the controller API.
2020.1
|
inline |
Creates a new MouseButton with the given index.
The mouse button index maps to mouse buttons as follows: 0 => unknown button 1 => left mouse button (primary button) 2 => middle mouse button 3 => right mouse button
Unmapped values can be used to express a custom mouse button.
index
the mouse button index.
|
inline |
|
inline |
rhs
the MouseButton that this MouseButton is being compared to.
true if the MouseButtons are equal
|
inline |
|
inline |
if the button is the left mouse button
|
inline |
if the button is the middle mouse button
|
inline |
if the button is the right mouse button
|
inline |
if the button is unknown
|
inlinestatic |
|
inlinestatic |
|
get |
|
staticget |
|
staticget |
|
staticget |
|
staticget |