-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggle with no dataref state #5
Comments
There once was ignored The method could just then swap the This way there won't be any additions to the main loop, preserving the efficiency. |
Here is my 2 cents suggestion: for all buttons, you maintain a incremental counter each time it is pushed. For buttons of type |
You can do this now in lua. Just create a user Dataref and control it in the streamdeckhandler lua script. In the 172 script I create a frame rate Dataref and 4 for the transponder digits. Let me know if you need a copy of it. |
That would create 0-1-2-0-1-2 pattern, some buttons could cycle 0-1-2-1-0 This can be of course solved in lua, but having an internal solution would be nice to have. |
Hello,
there are a few cases where you have a command and the state of the command is not reflected in dataref.
For example, the sim/map/show_current command displays the map on screen, but there is no way to know map is open or not.
There are numerous such "toggle" commands. However, it is interesting to reflect the state (off or on) in the button icon.
I suggest we add a toggle type with two icons and switch between the two icons each time the button is pressed.
I understand there is not way to "guess" the initial state of the toggle, we assume it is OFF.
Pierre
The text was updated successfully, but these errors were encountered: