Interface InputController

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

interface InputController {
    doCommand: ((command) => Promise<StructType>);
    getEvents(extra?): Promise<inputControllerApi.Event.AsObject[]>;
    triggerEvent(event, extra?): Promise<void>;
}

Hierarchy (view full)

Implemented by

Properties

Methods

Properties

doCommand: ((command) => Promise<StructType>)

Send/Receive arbitrary commands to the resource.

Type declaration

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