inputEvents

Template with a set of functions for creating input event and input event codes from an enum. It can be used as a mixin in device nodes; see MouseIO and KeyboardIO for sample usage.

Members

Static functions

click
click()

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

codes
codes()

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

createEvent
InputEvent createEvent(Event event, bool isActive)

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

getCode
InputEventCode getCode(Event event)

Get the input event code from an enum member.

hold
hold(bool isActive)

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

Meta