O
OpenDeck6d ago
Nero

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
Terrorwolf
Terrorwolf6d ago
Thanks for the info. I remember there beeing an issue about this somewhere, but can't find it right now.
Nero
NeroOP6d ago
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
Terrorwolf
Terrorwolf6d ago
not sure if the Multiaction is currently waiting for one action to finish before starting the next one.
Nero
NeroOP6d ago
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
Terrorwolf
Terrorwolf6d ago
yes. thats what we deduced in the other issue.
Nero
NeroOP6d ago
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
Terrorwolf
Terrorwolf6d ago
would be a workaround for now atleast.
Nero
NeroOP6d ago
yeah, it works now and because its so quick, it doesnt even update the screen
Nero
NeroOP6d ago
another small issue, it seems that the icons are kept in the press state?
No description
Nero
NeroOP6d ago
even after changing profile
nekename
nekename6d ago
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
Nero
NeroOP6d ago
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
nekename
nekename6d ago
not the plugin system, no, but depending on what you're thinking of it could be accepted into OpenDeck
Terrorwolf
Terrorwolf6d ago
is there a reason as to why switch action should trigger on key down? regardless if its in a multi action or not?
nekename
nekename6d ago
it doesn't, but Multi Actions dont send actual key down and key up
Terrorwolf
Terrorwolf6d ago
ah ok.
nekename
nekename6d ago
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
Terrorwolf
Terrorwolf6d ago
And switch profile is currently triggering at key down?
nekename
nekename6d ago
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
Nero
NeroOP6d ago
but the switch happens when user [me] lift off finger like the second unintentional switch
Terrorwolf
Terrorwolf6d ago
would this be fixed with a hook for the siwtch profile action to only trigger once the multi action is finished?

Did you find this page helpful?