Interface InputController

Represents a human interface device like a mouse or keyboard that emits events for controls.

interface InputController {
    doCommand(command): Promise<JsonValue>;
    getEvents(extra?): Promise<PlainMessage<Event>[]>;
    triggerEvent(event, extra?): Promise<void>;
}

Hierarchy (view full)

Implemented by

Methods

  • TriggerEvent, where supported, injects an InputControllerEvent into an input controller to (virtually) generate events like button presses or axis movements

    Parameters

    Returns Promise<void>

Generated using TypeDoc