Current firmware release type.
Release type number, or null if not connected.
Current firmware version string.
Version string (e.g., "1.2.3"), or null if not connected.
Device connection status.
true if connected and opened.
Last received device state.
Device state, or null if no state received yet.
Current wheel position in degrees.
Position in degrees, or null if not connected.
Current torque normalized to [-100, 100] range.
Normalized torque, or null if not connected.
Optionalcontext: anyOpens the browser's device picker to connect to a wheel.
true if connection was successful.
Cleans up all resources and event listeners. Must be called when the API instance is no longer needed.
Disconnects from the current device.
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Optionalfn: (...args: ArgumentMap<WheelEvents>[Extract<T, keyof WheelEvents>]) => voidOptionalcontext: anyOptionalonce: booleanAdd a listener for a given event.
Optionalcontext: anyAdd a one-time listener for a given event.
Optionalcontext: anyReads the current ADC extension settings from the device.
ADC settings object.
Reads all settings from the device sequentially.
Object containing all settings groups.
Reads the current effect settings from the device.
Effect settings object.
Reads the firmware license information from the device.
Firmware license object.
Reads the current GPIO extension settings from the device.
GPIO settings object.
Reads the current hardware settings from the device.
Hardware settings object.
Reboots the controller without saving settings.
Remove all listeners, or those of the specified event.
Optionalevent: keyof WheelEventsRemove the listeners of a given event.
Optionalfn: (...args: ArgumentMap<WheelEvents>[Extract<T, keyof WheelEvents>]) => voidOptionalcontext: anyOptionalonce: booleanSets the current wheel position as center.
Saves current settings to flash and reboots the controller.
Sends direct force feedback control to the device.
Force feedback control values.
Sends the firmware activation license key to the device. Expected format: "XXXXXXXX-XXXXXXXX-XXXXXXXX" (Hex strings)
The license key string.
true if the format was valid and sent, false otherwise.
Writes a single setting value to the device.
The setting field to write.
Sub-index for array-based settings.
The value to write.
Switches the device to DFU mode for firmware updates.
Attempts to reconnect to a previously authorized device.
true if a device was found and connected.
StaticisChecks if WebHID is supported in the current browser.
true if supported (Chrome/Edge/Opera).
WebHID-based API for communicating with the wheel controller.
Example