HID Mouse
The startHidMouse
function starts a relay server on the device
and returns a client.
The server emulates a mouse and can be used to send mouse movement, wheel or clicksF to a computer.
import { startHidMouse } from "@devicescript/servers"
const mouse = startHidMouse({})
The service instance name is automatically set to the variable name. In this example, it is set to mouse
.