AntiMicroX / antimicrox

Graphical program used to map keyboard buttons and mouse controls to a gamepad. Useful for playing games with no gamepad support.
GNU General Public License v3.0
2.52k stars 146 forks source link

Horizontal mouse wheel is so fast when set on stick #1024

Closed CongTiankong closed 2 months ago

CongTiankong commented 3 months ago

Is there an existing issue for this?

Current Behavior

I tried to set 'wheel left' and 'wheel right' on stick left and right direction, it works but scroll speed is out of control. Tried to tweak 'wheel hori. speed' from 'mouse settings' but it has no effect.

Vertical wheel performs well on sticks and 'wheel vert. speed' has effect. On d-pad both wheel performs well, 'wheel hori. speed' and 'wheel vert. speed' both has effect.

By the way, it seems 'wheel left' and 'wheel right' is inverted, is it a bug?

Expected Behavior

No response

Steps To Reproduce

No response

Environment

Program Version 3.4.0
Compiled from packaging: 3.4.0
Built Against SDL 2.30.3
Running With SDL 2.30.6
Using Qt 5.15.14
Using Event Handler: uinput
Compositor type: wayland
Host OS: arch Version: unknown Architecture: x86_64

Anything else?

No response


Upvote & Fund

Fund with Polar

sk2449 commented 2 months ago

I have observed this unexpected high horizontal scroll speed as well (v3.1.4 from Debian Sid repos on X11) when trying to translate gamepad inputs (Xbox One Controller) in a meaningful way to control video playback in mpv. From mpv's verbose logs it looked like AntiMicroX is sending 10 WHEEL_RIGHT/WHEEL_LEFT events vs. 1 WHEEL_UP/WHEEL_DOWN event for the same horizontal/vertical stick movement, but i didn't find the time yet to analyze this further. Anyone knows a convenient method to track the simulated input events? "--log-level debug" is very verbose and i struggled to isolate the relevant parts, when it comes to stick input, which is mapped to scroll events, while common tools like "xev" don't appear to capture the activities from AntiMicroX at all.