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.43k stars 140 forks source link

LT and RT mapping to wrong butttons #877

Open reisaraujo-miguel opened 10 months ago

reisaraujo-miguel commented 10 months ago

Is there an existing issue for this?

Current Behavior

I used the software to map my controller and every button seemed to work properly, except for the left trigger and right trigger.

I use the steam controller mapping feature and it works just fine, so I tried to copy the SDL 2 Game Controller Mapping String from steam and compare it with the String produced by AntiMicroX.

Steam:

0500a5d049190000020400001b010000,GameSir T4 Pro,crc:8283,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b23,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,

AntiMicroX:

0500a5d049190000020400001b01000064731026,Ipega PG9118,platform:Linux,a:b0,b:b1,x:b3,y:b4,back:b10,start:b11,guide:b15,leftshoulder:b6,rightshoulder:b7,leftstick:b13,rightstick:b14,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,

You can see that while Steam maps lefttrigger to a5 and AntiMicroX maps to b8, the same with righttrigger, Steam maps to a4 and AntiMicroX maps to b9.

Expected Behavior

The LT and RT should be mapped to the right buttons so it can work properly.

Steps To Reproduce

No response

Environment

Program Version 3.3.4
Program Compiled on Jul 19 2023 at 00:00:00
Built Against SDL 2.26.5
Running With SDL 2.26.5
Using Qt 5.15.11
Using Event Handler: uinput
Compositor type: wayland
Host OS: fedora Version: 39 Architecture: x86_64

Anything else?

Gamepad model: NS009-S


Upvote & Fund

Fund with Polar

Augusto7743 commented 10 months ago

What is your controller ?

reisaraujo-miguel commented 10 months ago

The model name is NS009-S. It is a generic Nintendo Switch controller.

It has two modes, when connected via USB it is recognized by AntiMicroX as "SHANWAN Android Gamepad". When connected via Bluetooth it is recognized by AntiMicroX as "Ipega PG 9069"

MrChillings commented 9 months ago

shouldn't u use Betterjoy to connect a switch controller to pc?

my experience with the PDP wannebe pro controller it only worked right if i used Betterjoy which "converts" it to a xbox 360 controller. AntiMicroX can then recognize it as the xbox 360 controller and map everything to your likings.

while betterjoy communicates the right controller input to AntiMicroX.

reisaraujo-miguel commented 9 months ago

I believe Betterjoy is a Windows only program. I am a Linux user ;-;

MrChillings commented 9 months ago

did a quick search. not sure if this is even close to betterjoy it popped up as an alternative to it: https://github.com/DanielOgorchock/joycond