Libg203lightsync: Lib for interacting with the Logitech G203 LS mouse
github.com
github.com
Note the link to the examples folder is broken. There appears to be no examples folder on the github.
Whereas for controlling the lights of the mouse with a browser I would think WebUSB would be used for that?
https://wicg.github.io/webusb/#has-a-protected-interface-cla...
WebHID also restricts access to mice and keyboards, but it uses information available at the HID protocol level to selectively block access to sensitive capabilities while leaving other capabilities unblocked. So, you can't implement an input logger but you can configure LEDs and other device behavior.
In general, WebUSB isn't useful for devices that already have some system-level support. If there's a driver, it will have already claimed the USB interface and needs to release it before the browser can access it. Even if the HID interface class were not protected, you still wouldn't be able to claim it because the USB HID interface is already claimed by the system's generic HID driver. The generic HID driver exposes a non-exclusive "raw" HID interface to applications. WebHID uses this non-exclusive interface which is why it doesn't have the same limitation as WebUSB.