Debouncing issue?
I want to make a pseudo folder that when I click something, it returns to the previous screen.
I managed to accomplish that with Multi Action and Switch Profile, but it seems that when i press the button, it triggers the button that it is on the switched profile too.
21 Replies
Thanks for the info. I remember there beeing an issue about this somewhere, but can't find it right now.
would it be possible to do a plugin that has a "wait" action where presses are ignored? for a quick fix meanwhile lol
ahhh, i think i know what it is
not sure if the Multiaction is currently waiting for one action to finish before starting the next one.
when I maintain the button pressed, it reproduces the soundboard effect and then switches back. when I release the button, the button that is now in the new profile gets pressed too
yes. thats what we deduced in the other issue.
so
on pressed: it does the action in the current page, moves to the previous page
on release: it does the action where the button is in the previous page, in this case, moving back to the folder
i guess what i can do is make an intermediary folder that has a screen full of move to x scene, so it does that middle step
would be a workaround for now atleast.
yeah, it works now and because its so quick, it doesnt even update the screen
another small issue, it seems that the icons are kept in the press state?

even after changing profile
So there was this..
https://discord.com/channels/1143819637897834571/1402092448540524704/1402291866736787456
but I don't think there's a dedicated issue open yet so we can use this one
I would appreciate a contribution to fix this, maybe making any switch profile present in a multi action execute on key up instead of on key down? then also in the UI it can prevent adding more actions once a switch profile is added
might ask Copilot to take a stab at it
yep
that would work
also
unrelated question
is possible to use the plugin system to add an icon creator when i change icons?
or do i need to modify the program itself
not the plugin system, no, but depending on what you're thinking of it could be accepted into OpenDeck
is there a reason as to why switch action should trigger on key down? regardless if its in a multi action or not?
it doesn't, but Multi Actions dont send actual key down and key up
ah ok.
when you press the multi action, it
- sends key down for the first action
- waits 100ms
- sends key up for the first action
- waits 100ms
- sends key down for second action
- waits 100ms
- sends key up for second action
And switch profile is currently triggering at key down?
no it triggers on key up, but key up here is actually on key down, and the real key up is still then sent to the action behind after it has switched when the user releases the key
but the switch happens when user [me] lift off finger
like the second unintentional switch
would this be fixed with a hook for the siwtch profile action to only trigger once the multi action is finished?