C0rn3j / sc-controller

User-mode driver and GTK3 based GUI for Steam Controller
GNU General Public License v2.0
29 stars 2 forks source link

gyro sensitivity settings have no effect #27

Open UltraBlackLinux opened 1 month ago

UltraBlackLinux commented 1 month ago

I've been running into this issue where I'm not able to change the sensitivity of the gyro with this config: mode(LPAD, None, sens(-5.0, 5.0, gyro(Axes.ABS_Y, Axes.ABS_X))) I can neither invert their axes, nor can I change the sensitivity. None of that has any effect. (I would also like to mention that whenever I re-open the gyro menu all my settings are reset to the defaults and I have to re-enter everything, quite frustrating...) Any idea what's going on? I'm on v0.4.8.21 using a Steam Controller. Thanks!

C0rn3j commented 1 month ago

How can I test and reproduce this? Never used/debugged the gyro before.

Also please try testing on beta (currently v0.4.9.1.1) too in case it happens to be fixed there.

UltraBlackLinux commented 1 month ago

just tried the beta. It doesn't seem to be completely resetting everything like it was previously, but the sensitivity settings are still quietly discarded, so that's still not working.

Edit: To test, just copy what I entered above and paste that into the "Custom action" menu on the gyro. Then re-open the menu to see the sensitivity settings gone. If you have a controller with gyro support, go to an online gamepad tester and check if tilting the controller back, away from the cable, moves the left stick up, even when inverting it in the UI - which would use the sensitivity settings

C0rn3j commented 1 month ago

How is your Steam Controller connected? BT, Dongle, USB?

Which site are you using to test?

Which profile are you loading on SC Controller while testing?

I can't get https://hardwaretester.com/gamepad to see any axis movement on neither USB DS4v2 nor Dongle SC on the XBox+Camera profile.

UltraBlackLinux commented 1 month ago

hmm well I was using that exact website. SC connected via USB. that website doesn't seem to do the gyro natively, but if you map the gyro to a stick, like with my above example, you can see the movements perfectly fine.

C0rn3j commented 1 month ago

image

Right, got it, just going to leave that here, this project could really use some feature demo video.

I can repro it.
No clue why it happens, will check it out.

C0rn3j commented 1 month ago

You can actually set the Axis invert via the checkbox, but when you open the menu again, it loads it without it, and pressing OK overwrites the setting.

The custom action sens setting don't even save once though.

EDIT: Just confirmed it happens in 0.4.8.13 too -> Last Ryochan release.

EDIT2: For some reason, none of this is hooked, I found one spot which mildly fixes the Y invert button, but it needs fixes everywhere else too.

Now, if add that AND you set ALL THREE axes, it starts actually working, ugh.

C0rn3j commented 1 month ago

Try v0.4.9.2, it's still fairly broken in the Custom Action menu, but as long as you set that first and set sensitivty after in the first Action tab, it'll work enough to be at least usable.

UltraBlackLinux commented 1 month ago

that seems to have fixed most of the woes there! As you correctly pointed out there's still something weird going on with the custom action tab, but other than that it's working great now, thank you so much!