Add support for long pressing the touch screen so alternative actions can be executed for each button #3005
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.
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.