Skip to content

Conversation

@rondlh
Copy link

@rondlh rondlh commented Sep 22, 2025

Add support for long pressing the touch screen

Description

This allows the user to select alternative function for each key. The menus can call menuKeyIsLongPress() to get the longpress key status so they can handle a long press action.

Long press handler added to:
Extrude.c, long pressing the E0/E1 selector in an multi extruder system allows to jump to the heating menu (Heating is not available on this screen in this setup).
Heat.c, long pressing the "=" jumps directly to 200 degrees, which is especially useful for use without an encoder.
Move.c, long pressing the "move length" button allows to adjust the move speed. Speed control is not available in this menu at all without this feature.

Benefits

More user friendly touchscreen operation, it's now easy to add long press functions to any key, not only the back key.

Add long press support to the menu.c, the menus can call menuKeyIsLongPress() to get the keypress status so they can handle a long press.
Handler added to:
Extrude.c
Heat.c
Move.c
Allow longer longPressed time, add 1 cycle for improved reliability
Correct extruder long press behavior
Handle Long pressed back for jump to heating menu
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