Repository navigation
zephyr-cp: add input support - #11931
Merged
Merged
Conversation
This allows the mouse to be used in native_sim to mimic touch drivers like the GT911 used on the Raspberry Pi Touch display.
mikeysklar
approved these changes
Nov 20, 2026
mikeysklar
left a comment
Collaborator
There was a problem hiding this comment.
Tested and it works.
On native_sim_lvgl, touch() tracked a mouse drag point for point and went back to None on release, 3 of 3 runs.
On a Feather nRF52840 (Zephyr), digitalio on the button pin still works with gpio-keys running.
The Flash cost is real so just mentioning it here.
CI, PR vs main:
| Boards | Δ flash | Free after |
|---|---|---|
| frdm_mcxn947 | +5,016 | 985 KB |
| mimxrt1170_evk, ek_ra8d1, stm32h7b3i_dk | +2.6 to +3.5 KB | 974 KB to 1.4 MB |
| Other Nordic, ST, Renesas, NXP dev kits, siwx917 | +1.4 to +1.8 KB | 57 KB to 1.5 MB |
| Adafruit nRF52840 Zephyr boards | +1.0 to +1.1 KB | 56 to 66 KB |
| RP2xxx, Metro M7, mimxrt1010 (no buttons) | +164 to +996 | 427 KB to 1.4 MB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This allows the mouse to be used in native_sim to mimic touch drivers like the GT911 used on the Raspberry Pi Touch display.