Skip to content

Conversation

@RetiredWizard
Copy link
Contributor

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.

@RetiredWizard
Copy link
Contributor Author

RetiredWizard commented Nov 24, 2025

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.

@RetiredWizard
Copy link
Contributor Author

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)

@RetiredWizard RetiredWizard changed the title FruitJam PyPaint: Add support for Composite HID devices FruitJam PyPaint and Memory: Add support for Composite HID devices Nov 24, 2025
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.

1 participant