Function InputEvent.get

Gets the specific event instance. First, check the type (such as in a switch statement), then extract the correct one from here. Note that the template argument is a value type of the enum above, not a type argument. So to use it, do event.get!(InputEvent.Type.KeyboardEvent), for example.

auto get(InputEvent.Type T)() @property;

See Also

The event types: [KeyboardEvent], [MouseEvent], [SizeChangedEvent], [PasteEvent], [UserInterruptionEvent], [EndOfFileEvent], [HangupEvent], [CustomEvent]

And associated functions: [RealTimeConsoleInput], [ConsoleInputFlags]