anki-contanki icon indicating copy to clipboard operation
anki-contanki copied to clipboard

Xbox Elite series 2 controller mac wrong mapping

Open PyryOuri opened this issue 2 years ago • 3 comments

I'm facing wrong mappings with a xbox elite series 2 controller on Mac. Only the A and B buttons, shoulder buttons and the right stick seem to be totally correctly mapped. Rest are a mismatch of not working(D-pad, tried remapping) or have some other random function(right shoulder button seems to turbo input "up" as it causes the cursor jump to the top and stay there even when trying to move via trackpad, very annoying). Tested the controller on windows where it works flawlessly with the add-on.

Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1 Platform: Mac 13.1 Flags: frz=True ao=True sv=3 Add-ons, last update check: 2023-01-28 10:38:58

1 controller detected: Xbox Wireless Controller (Vendor: 045e Product: 0b22) Buttons: 16 Axes: 10

PyryOuri avatar Feb 01 '23 06:02 PyryOuri

That's unfortunate, we may need to add a custom mapping to this controller. If you have the time, would you be able to visit this site and then post the index of the button or axis that corresponds to each control? Sorry to ask but I don't have that particular controller to test.

It's a bit odd that it's reporting so many axes, most controllers have 4 (two for each analog stick).

I know that the controller can store profiles with custom button mappings, but I'm assuming that's not the problem here.

roxgib avatar Feb 01 '23 23:02 roxgib

I've tried multiple different profiles and each report the same. Now I thought about the weird behavior with the trigger buttons and when playing around with the linked controller tester I realised that the elite controller has analog shoulder buttons which maybe be interpreted as sticks in some way. As at least the left trigger seems to be doing what the right stick is bound to(for example when right stick is bound to cursor movement, when the trigger is pressed once, the cursor shoots to the top and stays there unless controller is disconnected. Pressing the trigger brings the cursor down)

so like this?

B0 B B1 A B2 X B3 Y B4 L1 B5 R1 B6 L2 B7 R2 B8 share B9 start B10 L3 B11 R3 B12 D-pad up B13 D-pad down B14 D-pad left B15 D-pad Right B16 Xbox button

Axis 0 L joystick left(-1) and right(+1) Axis 1 L joystick up(-1) and down(+1) Axis 2 R joystick left(-1) and right(+1) Axis 3 R joystick up (-1) and down (+1)

PyryOuri avatar Feb 02 '23 06:02 PyryOuri

And more specifically the left trigger seems to be bound to whatever is as the action on the right stick up/down axis. If the action is horizontal cursor movement then the cursor shoots to the left and can be moved to the right by pressing the button. If unassigned, the left trigger does nothing. I wasn't able to reproduce this with the right trigger.

PyryOuri avatar Feb 02 '23 06:02 PyryOuri