antimicrox
antimicrox copied to clipboard
Accelerometer triggers when switching sets
Is there an existing issue for this?
- [X] I searched the existing issues and did not find anything similar.
Current Behavior
https://youtu.be/XpYu14c_uDc
I want to extend the amount of covered keys by using sets. So every button on the right (X,Y,A,B/square,triangle,etc) switches to a set while held.
But with that configuration, on set switch, accelerometer also fires. As you can see in the video it does not happen when button is mapped to just a key and it is also happening when the switch is configured to be two-way. So I think this is something that happens on set switch
A solution might be to also set the accelerometer keys on other sets, but I've found out that with that configuration, it can get stuck resulting in antimicrox sending the key repeatedly even when input doesn't light up in the current set
I'm using bluetooth from my MB so I don't think it's because of USB hub
Expected Behavior
- don't lock up outputs when set changes
- don't trigger accelerometer right (for some reason it's always the right output) on set change
Steps To Reproduce
star-citizen.gamecontroller.amgp.txt
- open a terminal
- press any of right buttons without rolling the controller
- "e" gets printed in a terminal because a switch of the set made accelerometer roll right to trigger
Environment
Program Version 3.4.0
Compiled from packaging: 3.4.0
Built Against SDL 2.30.3
Running With SDL 2.30.3
Using Qt 5.15.14
Using Event Handler: uinput
Compositor type: wayland
Host OS: arch Version: unknown Architecture: x86_64
Anything else?
I can mess with the code but I don't know the project, so would need some pointers where to start looking