Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added SpaceMouse USB, connect with path and silent_callback #16

Merged
merged 1 commit into from
May 26, 2023

Conversation

hlprev
Copy link
Contributor

@hlprev hlprev commented Apr 24, 2023

New addition of supported Spacemouse: Spacemouse USB.
It has no buttons, but button_spec is required so I set its contents to None.

In def open() I added the possiblility to open a spacemouse by using a path. Example: open(path="path/to/port"). It seems to blend in and not mess up the other ways of opening the spacemouse. It makes it possible to open one, or more, by their specific ports which I find useful.

Last contribution is the def silient_callback(), since I use the callback but I don't reaquire the print outs in the terminal (might be that this can be avoided in another way?). Now you can use callback = silent_callback and it all works fine in silence :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants