Enumerator |
---|
None |
|
Left |
|
Right |
|
Middle |
|
Btn4 |
|
Btn5 |
|
Any |
|
static bool Mouse.CheckButtons |
( |
Buttons |
buttons, |
|
|
Buttons |
buttonsToTest, |
|
|
bool |
strict = true |
|
) |
| |
|
inlinestatic |
Tests the given Buttons bitfield against the specified button indices.
- Parameters
-
buttons | The Buttons bitfield to test. For the currenly held buttons, use GetAllMouseButtons() |
buttonsToTest | The bitfield to compare against. |
strict | strict testing returns false if anything but the exact combination of buttons is held. Non-strict will return true if any of the test buttons match |
- Returns
static Buttons Mouse.GetAllMouseButtons |
( |
| ) |
|
|
inlinestatic |
Retuns a bitfield containing all the buttons currently being held down.
- Returns
static Buttons Mouse.GetAllMouseButtonsDown |
( |
| ) |
|
|
inlinestatic |
static Buttons Mouse.GetAllMouseButtonsUp |
( |
| ) |
|
|
inlinestatic |
The amount (in GUI coords) the mouse has moved in the last frame
Part Mouse.HoveredPart = null |
|
static |
Part pointer reference of the part being hovered. This one can return the actual Part being referenced.
The mouse position (in GUI coordinates)
The documentation for this class was generated from the following file: