johnhw / pyspacenavigator

3Dconnexion Space Navigator in Python using raw HID (windows only)
MIT License
64 stars 26 forks source link

Add SpaceMouse Compact. #10

Closed duncanmcbryde closed 4 years ago

duncanmcbryde commented 4 years ago

Hi John,

I have a SpaceMouse Compact, and noticed that it was not recognised by pyspacenavigator. I have added the the definition to device_definitions with VID and PID 0x256F, 0xC635 and copying the SpaceMouse Wireless definitions, all fairly straightforward.

Testing shows sane output from the device state, with the 6 axes working and both buttons, and thought that you may want the updated definitions.

I noticed that my editor tidied the trailing white space automatically, so please forgive the white space edits in this pull.

Thanks,

Duncan

johnhw commented 4 years ago

Great, thank you. This looks like a straightforward merge!