Skip to content

Conversation

@MatthewWilkes
Copy link
Member

Description

I expect that there will be a number of Hexpansions that handle some form of text input. This adds common keyboard buttons to the list of inputs known by the firmware, and updates the text entry dialogue to accept them.

I expect that there will be a number of Hexpansions that handle some form of text input. This adds common keyboard buttons to the list of inputs known by the firmware, and updates the text entry dialogue to accept them.
@sodoku
Copy link

sodoku commented Nov 14, 2025

How would a hexpansion send the input events? Using a minimised app?

@ChrisDick
Copy link
Contributor

you can use the background_update function in the hexpansion app to raise the events. The hexpansion apps use the app class, same as the tildagon apps, described in https://tildagon.badge.emfcamp.org/tildagon-apps/development/

if KEYBOARD_BUTTONS["SHIFT"] in event.button:
key = -2
final = SPECIAL_KEY_SHIFT
elif KEYBOARD_BUTTONS["DELETE"] in event.button:
Copy link
Contributor

Choose a reason for hiding this comment

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

"DELETE" is doing a backspace, we could support both in the future.

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.

3 participants