Add misc/spacemouse-capture.py to record a 3D mouse's raw USB reports

For device owners on Linux: guided movements, with every raw report and
the device's report descriptor saved to one JSON file. Dropped into
tests/qttest/fixtures/spacemouse/, a recording is checked by
tst_spacemousehid against what the user was asked to do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ispyisail
2026-09-25 11:00:59 +12:00
parent aaeaff55cc
commit 313aafc95b
2 changed files with 196 additions and 1 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
The descriptors below are written by hand from the HID specification,
in the shape 3Dconnexion devices use. Recordings from real devices,
made with spacemouse-capture.py, go in fixtures/spacemouse/ and are
made with misc/spacemouse-capture.py, go in fixtures/spacemouse/ and are
checked by recordedDevices(): each step says what the user did, so the
decoded motion must point the right way.
*/