-
I'm trying to use GEM on an Industruino (https://industruino.com) device that only has an UP, DOWN and ENTER button. Is there a way make GEM cycle through the digits using only the UP/DOWN/ENTER buttons? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hello! At the moment it may require some source code modification, I am afraid. For example, you can make Alternatively, you may want to consider avoiding editable variables altogether in favor of making use of Selects, Checkboxes and Buttons (if it is acceptable in your specific case, of course). However I still plan on adding special means of tracking current state of GEM object (accessing currently selected Menu item object, its value, menu states, etc.) to make it a little bit easier to customize behavior of input methods. That will be added in some future versions of library, but no estimates as of now. You may see the discussion here for some additional context. |
Beta Was this translation helpful? Give feedback.
-
Additional thing you can try to do (without the need to modify GEM source code) is to detect quick-time events (QTE) with what buttons you have available: e.g. quick double click of Enter/ For that you would have to write your own key detection method and call Please, refer to Control menu from your sketch section of wiki for details. |
Beta Was this translation helpful? Give feedback.
-
Hi - I'm rather new to all this so apologies in advance if any of this is clueless... but I'd like to add my voice in support of GEM working with just a rotary encoder and a single button - it's such an efficient UI input when you are trying to make a simple menu-based project. Maybe it's worth implementing? In my experience the difference between the "ok" button and the "right" button are pretty similar, and... I'm not sure you lose much functionality if you make them equivalent. Changing your source code is far beyond my skills... Thank you! |
Beta Was this translation helpful? Give feedback.
👋 FYI: just updated GEM with examples on how to control menu with rotary encoder using latest version of KeyDetector (implementing control scheme described above).