poison.core.eventargs.buttoneventargs
Source
A module for button event args handling.
Authors:
Jacob Jensen
License:
https://github.com/PoisonEngine/poison-ui/blob/master/LICENSE
public:
protected:
public:
public class ButtonEventArgs(T) : EventArgs
protected:
public:
Event args that relies on button logic.
protected this();
Creates a new button event args wrapper.
public void press(T button);
Presses a button.
Parameters:
button The button to press.
public void release(T button);
Releases a button.
Parameters:
button The button to release.
public bool isPressed(T pressedButton);
Checks whether a specific button is pressed or not.
Parameters:
pressedButton The button to check if pressed or not.
Returns:
true if the button is pressed.
public bool isPressed(Range)(Range pressedButtons);
Checks whether a range of buttons are pressed or not.
Parameters:
pressedButtons The buttons to check if pressed or not.
Returns:
true if all buttons are pressed.
public @property T[] pressed();
Gets all buttons currently pressed.
public @property T lastPressed();
Gets the last button pressed.
public @property T currentPressed();
Gets the current button pressed.
Generated by venom - Poison Engine's Documentation Generator
A module for button event args handling.
Authors:
Jacob JensenLicense:
https://github.com/PoisonEngine/poison-ui/blob/master/LICENSEpublic class ButtonEventArgs(T) : EventArgs
protected:
public:
Event args that relies on button logic.
protected this();
Creates a new button event args wrapper.
public void press(T button);
Presses a button.
Parameters:
button | The button to press. |
public void release(T button);
Releases a button.
Parameters:
button | The button to release. |
public bool isPressed(T pressedButton);
Checks whether a specific button is pressed or not.
Parameters:
pressedButton | The button to check if pressed or not. |
Returns:
true if the button is pressed.public bool isPressed(Range)(Range pressedButtons);
Checks whether a range of buttons are pressed or not.
Parameters:
pressedButtons | The buttons to check if pressed or not. |
Returns:
true if all buttons are pressed.public @property T[] pressed();
Gets all buttons currently pressed.
public @property T lastPressed();
Gets the last button pressed.
public @property T currentPressed();
Gets the current button pressed.