antimicrox icon indicating copy to clipboard operation
antimicrox copied to clipboard

Accelerometer triggers when switching sets

Open pan-mroku opened this issue 1 month ago • 0 comments

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

  1. don't lock up outputs when set changes
  2. 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

  1. open a terminal
  2. press any of right buttons without rolling the controller
  3. "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

pan-mroku avatar Jun 09 '24 12:06 pan-mroku