FFBeast Wheel WebHID API
    Preparing search index...

    Interface WheelEvents

    Event handler signatures for WheelApi events.

    interface WheelEvents {
        deviceConnected: (device: HIDDevice) => void;
        deviceDisconnected: (device: HIDDevice) => void;
        error: (error: Error) => void;
        stateReceived: (state: DeviceState) => void;
    }
    Index
    deviceConnected: (device: HIDDevice) => void

    Emitted when a device is successfully connected.

    deviceDisconnected: (device: HIDDevice) => void

    Emitted when the device is disconnected.

    error: (error: Error) => void

    Emitted when an error occurs during background processing, such as parsing input reports or connecting automatically.

    Direct API calls (like sendSetting) reject their promise instead.

    stateReceived: (state: DeviceState) => void

    Emitted when new device state is received.