Свойство | Type | Description | |
---|---|---|---|
MouseButtons | MouseButton[] | ||
PreviousPositions | List |
Méthode | Description | |
---|---|---|
IsClicked ( MouseButton button ) : bool |
Check if a button is clicked (i.e. pressed for exactly 1 frame).
|
|
IsHeld ( MouseButton button ) : bool |
Check if a button is being held down (coincides with IsClicked).
|
|
IsHeldFor ( MouseButton button, int frames ) : bool |
Check if a button has been held down for exactly the given number of frames.
|
|
IsHeldForAtleast ( MouseButton button, int frames ) : bool |
Check if a button has been held down for at least the given number of frames.
|
|
IsMouseStill ( ) : bool |
Check if the mouse is still.
|
|
IsMouseStillFor ( int frames ) : bool |
Check if the mouse has been still for exactly the given number of frames.
|
|
IsMouseStillForAtleast ( int frames ) : bool |
Check if the mouse has been still for at least the given number of frames.
|
|
IsReleased ( MouseButton button ) : bool |
Check if a button has been released (i.e. unpressed for exactly 1 frame).
|
|
IsUnheld ( MouseButton button ) : bool |
Check if a button is not being held down.
|
|
IsUnheldFor ( MouseButton button, int frames ) : bool |
Check if a button has been left unpressed for exactly the given number of frames.
|
|
IsUnheldForAtleast ( MouseButton button, int frames ) : bool |
Check if a button has been left unpressed for at least the given number of frames.
|
|
MouseInput ( ) : System.Collections.Generic |
Méthode | Description | |
---|---|---|
Update ( ) : void |
Update the internal state of the mouse.
|
|
UpdateButton ( ButtonState state, MouseButton button ) : void |
public IsClicked ( MouseButton button ) : bool | ||
button | MouseButton | |
Résultat | bool |
public IsHeld ( MouseButton button ) : bool | ||
button | MouseButton | |
Résultat | bool |
public IsHeldFor ( MouseButton button, int frames ) : bool | ||
button | MouseButton | |
frames | int | |
Résultat | bool |
public IsHeldForAtleast ( MouseButton button, int frames ) : bool | ||
button | MouseButton | |
frames | int | |
Résultat | bool |
public IsMouseStillFor ( int frames ) : bool | ||
frames | int | |
Résultat | bool |
public IsMouseStillForAtleast ( int frames ) : bool | ||
frames | int | |
Résultat | bool |
public IsReleased ( MouseButton button ) : bool | ||
button | MouseButton | |
Résultat | bool |
public IsUnheld ( MouseButton button ) : bool | ||
button | MouseButton | |
Résultat | bool |
public IsUnheldFor ( MouseButton button, int frames ) : bool | ||
button | MouseButton | |
frames | int | |
Résultat | bool |
public IsUnheldForAtleast ( MouseButton button, int frames ) : bool | ||
button | MouseButton | |
frames | int | |
Résultat | bool |
public MouseInput ( ) : System.Collections.Generic | ||
Résultat | System.Collections.Generic |
public static MouseButton[] MouseButtons | ||
Résultat | MouseButton[] |