sc-controller icon indicating copy to clipboard operation
sc-controller copied to clipboard

Trigger Doesn't Output Analog Value

Open 0-ks opened this issue 1 year ago • 3 comments
trafficstars

Using the default XBox Controller Profile, when I connect my DS4, it's not possible to emulate Analog trigger values.

As you can see bellow, User 0 is the emulated device by SC Controller and the User 1 is the actual input of the DS4 in Wine Control Panel: sc-controller-trigger-bug

Here is the output of the emulated device in EVTEST to confirm the issue is not related to Wine: sc-controller-trigger-bug-evdev

0-ks avatar Aug 24 '24 22:08 0-ks

After further investigation, I found that changing the Analog Output Range Start and End to 128 and 129 resolves the problem, so it seems like the default range of 0 to 255 is causing the problem for some reason.

As a workaround, you can try setting: axis(Axes.ABS_Z, 128, 129) for the Left Trigger Action and axis(Axes.ABS_RZ, 128, 129) for the Right Trigger Action until the bug is fixed.

0-ks avatar Aug 28 '24 12:08 0-ks

If you can repro it on the Python 3 fork, feel free to report this bug there too.

C0rn3j avatar Sep 13 '24 21:09 C0rn3j

If you can repro it on the Python 3 fork, feel free to report this bug there too.

Yes, Unfortunately the bug is also present in the latest release of the Python 3 fork,

I will report this on the Python 3 fork repo as well.

0-ks avatar Sep 16 '24 12:09 0-ks