-
Notifications
You must be signed in to change notification settings - Fork 792
FruitJam PyPaint and Memory: Add support for Composite HID devices #3169
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
base: main
Are you sure you want to change the base?
Conversation
|
Most of the changes here were enhancements to the PyPaint program so the program could be exited using the mouse only. The changes that were required to support the combination keyboard/trackpad are 1) the additional if block at lines 215-217 and 2) the atexit definition and registration at lines 674-691. |
|
I decided to try refactoring the memory game for the library changes as well. Obviously this PR depends on the two USB PRs being merged first (adafruit/Adafruit_CircuitPython_USB_Host_Mouse#14 and adafruit/Adafruit_CircuitPython_USB_Host_Descriptors#9) |
|
This is dependent on the required library changes, moving to draft until the library PRs are merged. |
This is one of three library changes (Adafruit_USB_Host_Descriptors and Adafruit_CircuitPython_USB_Host_Mouse) that provides a framework to support combination keyboard/trackpad USB devices.
I don't believe CircuitPython can have both the keyboard and trackpad of a combination device active at the same time but being able to have an application decide which one is active would be useful.
These changes to the PyPaint program allow it to search for non-boot (report) mice if no boot mice are found. An atexit callback is also added to switch control back to the keyboard when a non-boot mouse was configured for use with the application.
The trackpad sensitivity was also increased to make it more usable.