KeyboardIO

I/O interface for emitting keyboard events.

When a key is pressed on a keyboard device, it will emit an active InputEvent. While it is held down, it will continue to emit events every frame, however they will be marked inactive.

A KeyboardIO system will usually pass events to a FocusIO system it is child of.

Members

Aliases

press
alias press = click
Undocumented in source.

Enums

Key
enum Key
Undocumented in source.

Mixins

__anonymous
mixin inputEvents!(KeyboardIO, Key)
Undocumented in source.

Mixed In Members

From mixin inputEvents!(KeyboardIO, Key)

getCode
InputEventCode getCode(Event event)

Get the input event code from an enum member.

codes
codes()

A shortcut for getting input event codes that are known at compile time. Handy for tests.

click
click()

A shortcut for getting input events that are known at compile time. Handy for tests.

createEvent
InputEvent createEvent(Event event, bool isActive)
hold
hold(bool isActive)

Create a mouse input event that can be passed to an ActionIO handler.

Inherited Members

From IO

opEquals
bool opEquals(Object )
Undocumented in source.
loadTo
void loadTo(T resource)

Load a resource by reference. This is the same as Node.load.

Meta