This is a demo of the spacemouse-webhid library. Source code for this demo is available here.
Requirements:
Note: For linux, you need to ensure udev is setup with the correct device permissions for the hidraw driver.
Select device
Close device