HID Joystick
The startHidJoystick
function starts a relay server on the device
and returns a client.
import { startHidJoystick } from "@devicescript/servers"
const joystick = startHidJoystick({})
The service instance name is automatically set to the variable name. In this example, it is set to joystick
.