ButtonEventArgs

Event args that relies on button logic.

Constructors

this
this()

Creates a new button event args wrapper.

Members

Functions

isPressed
bool isPressed(T pressedButton)

Checks whether a specific button is pressed or not.

isPressed
bool isPressed(Range pressedButtons)

Checks whether a range of buttons are pressed or not.

press
void press(T button)

Presses a button.

release
void release(T button)

Releases a button.

Properties

currentPressed
T currentPressed [@property getter]

Gets the current button pressed.

lastPressed
T lastPressed [@property getter]

Gets the last button pressed.

pressed
T[] pressed [@property getter]

Gets all buttons currently pressed.

Inherited Members

From EventArgs

empty
EventArgs empty [@property getter]

Gets an empty event args.

Meta