mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-28 04:54:13 +02:00
d392ab4b8f
Windows reads the device through hid.dll and SetupAPI with ctypes, as hidapi's Windows backend does: shared, so 3DxWare can keep running, and dropping the 0 report ID Windows adds, as hidapi does, so the bytes are the ones QET decodes. Windows does not give out the report descriptor, so a Windows recording has none; tst_spacemousehid then uses its fallback layout. The docstring, printed in full by --help, now has step-by-step instructions for Linux, macOS and Windows, download included. Tested: Windows Python 3.12 (embeddable) under Wine 10, against the virtual uhid 3D mouse: --list finds it, a push sent during `right` lands in `right`, and a button press and release land in `buttons`, with the same bytes the Linux path records for the same push. Linux and the mocked macOS path still pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>