roxgib / anki-contanki

Contanki is an add-on for Anki which allows users to control Anki using a gamepad or other controller device. To install, visit AnkiWeb or use the install code 1898790263.
GNU Affero General Public License v3.0
37 stars 4 forks source link

Connecting Switch Pro no buttons detected #82

Closed frankfzhou closed 10 months ago

frankfzhou commented 10 months ago

When I connect my Switch Pro via either Bluetooth or USB, it detects three different controllers, and I can't control anything. The majority of the buttons are also not detected.

Anki 2.1.66 (70506aeb) Python 3.9.15 Qt 6.5.2 PyQt 6.5.2 Platform: Windows-10-10.0.22631 Flags: frz=True ao=True sv=3 Add-ons, last update check: 2024-01-21 20:49:46

3 controllers detected: Unknown Gamepad (Vendor: 045e Product: 09af) Buttons: 0 Axes: 3

Unknown Gamepad (Vendor: 045e Product: 09a6) Buttons: 0 Axes: 3

Wireless Gamepad (STANDARD GAMEPAD Vendor: 057e Product: 2009) Buttons: 18 Axes: 4

image

frankfzhou commented 10 months ago

Oh, I think I fixed it. I had to go in Tools of the Anki main menu and choose the right controller image

roxgib commented 10 months ago

Thanks for reporting. A few controllers also present one or more 'ghost' controllers that the add-on should ignore. I've added the ones from the Switch Pro controller to the list to be ignored in 7eedea0