Skip to content

zephyr-cp: add input support - #11931

Merged
mikeysklar merged 2 commits into
adafruit:mainfrom
tannewt:zephyr_input
Nov 20, 2026
Merged

mikeysklar merged 2 commits into
adafruit:mainfrom
tannewt:zephyr_input

Conversation

@tannewt

@tannewt tannewt commented Nov 19, 2026

Copy link
Copy Markdown
Member

This allows the mouse to be used in native_sim to mimic touch drivers like the GT911 used on the Raspberry Pi Touch display.

This allows the mouse to be used in native_sim to mimic touch drivers
like the GT911 used on the Raspberry Pi Touch display.
@tannewt
tannewt requested a review from a team November 20, 2026 19:39

@mikeysklar mikeysklar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@mikeysklar
mikeysklar merged commit 29fc60d into adafruit:main Nov 20, 2026
19 checks passed
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