InputEvent

Represents an event coming from an input device, like a pressed key, button or a gesture.

This only covers events with binary outcomes: the source of event is active, or it is not. Analog sources like joysticks may be translated into input events but they won't be precise.

@safe
struct InputEvent {}

Members

Variables

code
InputEventCode code;

Code uniquely identifying the source of the event, such as a key, button or gesture.

isActive
bool isActive;

Set to true if the event should trigger an input action.

Meta