diff options
author | Janar Sööt <janar.soot@gmail.com> | 2018-12-20 20:59:02 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-01-07 21:38:45 -0500 |
commit | b9cccc5959ddb14211103f5f36676340649af9ce (patch) | |
tree | aac64648901c6fbecbed12b84c727327781055fe /config | |
parent | 265769787f78baad46f84e584ec674c4bf12d877 (diff) | |
download | kutter-b9cccc5959ddb14211103f5f36676340649af9ce.tar.gz kutter-b9cccc5959ddb14211103f5f36676340649af9ce.tar.xz kutter-b9cccc5959ddb14211103f5f36676340649af9ce.zip |
menu: support for click button long press
- long press with timer (button release is not needed anymore)
- initial support for edit mode long press gcode
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/example-menu.cfg | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config/example-menu.cfg b/config/example-menu.cfg index 3d4a120e..81359081 100644 --- a/config/example-menu.cfg +++ b/config/example-menu.cfg @@ -93,7 +93,11 @@ #parameter: # Value from parameter (always index 0) is taken as input value when in edit mode. #gcode: -# This will be triggered in realtime or on exit from edit mode. +# This will be triggered in realtime mode, on exit from edit mode +# or in edit mode this will be triggered after click button long press (>0.8sec). +#longpress_gcode: +# In edit mode this will be triggered after click button long press (>0.8sec). +# The default is empty. This parameter is optional. #reverse: # This attribute accepts static boolean value. # When enabled it will reverse increment and decrement directions for input. @@ -162,7 +166,7 @@ #leave_gcode #longpress_menu: # Entry point to menu container. When this attribute is set then -# long press > 1s will initiate this menu container if not in edit mode. +# long press > 0.8s will initiate this menu container if not in edit mode. # The default is disabled. This parameter is optional. #items: # It accepts only 'card' elements. You are able to switch between different card screens |