glutanimate / anjoy-public

Temporary repository to host bug reports and documentation for the AnJoy Anki add-on
https://www.patreon.com/glutanimate/posts?tag=AnJoy
4 stars 0 forks source link

PS4 Controller connected via Bluetooth but Anki not responding to buttons: Incorrected Gamepad type identified by Anki? #14

Open DryIce1 opened 4 years ago

DryIce1 commented 4 years ago

Problem description

I was able to use Anki with my PS4 controller last week. Today Anki recognises the controller as Connected, but it doesn't say it is a PS4 controller (rather it says "Connected: STANDARD GAMEPAD Vendor 054c Product 09cc"). And there is no response when I press any of the gamepad buttons.

My PS4 gamepad controller is recognised on https://html5gamepad.com/ I have restarted Anki, disconnected/reconnected the bluetooth gamepad connection, reinstalled AnJoy and updated DS4Windows. All without success.

I believe the problem might be that Anjoy thinks I am using an Xbox controller rather than a PS4 controller - in the Anjoy Settings window, an Xbox controller is shown, and certainly in the bug report attached below there are a lot of "false" and zero values. Is there a way to deliberately select your controller (ie PS4 controller) and over-ride the automatic selection of Xbox/Standard Gamepad controller.

Thanks for your assistance.

disclaimer: I have no computer skills or training haha and I would love for your addon to work well and reliably for me!

Checklist

Please replace the space inside the brackets with an x if the following items apply:

Information about your Anki set-up

Please fill out the section corresponding with your Anki version:

If you are using Anki 2.1

===ANKI===

Anki 2.1.17 (c69ccb50) Python 3.8.0 Qt 5.14.0 PyQt 5.13.2 Platform: Windows 10 Flags: frz=True ao=True sv=1

Add-ons:

Edit Field During Review Auto Markdown No Distractions Full Screen No menus Floating answer buttons Color Confirmation (disabled) Image Occlusion Enhanced for Anki 21 alpha load balancer Night Mode (disabled) Pop-up Dictionary beta Full Screen Toggle AnkiConnect LPCG LyricsPoetry Cloze Generator Progress Bar Automatic Basic to Cloze Duplicate Selected Notes Customize Keyboard Shortcuts Button Colours Good Again Batch Editing Mini Format Pack Edit Field During Review Cloze (disabled) Replay buttons on card Frozen Fields Hierarchical Tags 2 Anki 2117 support True Retention Pokemanki for both Anki 20 and 21 Polar Connect - PDF and Incremental Reading with Anki Sync (disabled) AwesomeTTS Google Cloud Text-to-Speech unofficial Incremental Reading v4103 (disabled) AnJoy Cloze Overlapper Spell Checker

===ANJOY===

version: 0.1.0-beta.1 [ { "id": "Xbox 360 Controller (XInput STANDARD GAMEPAD)", "index": 0, "connected": true, "timestamp": 436126.6450000001, "mapping": "standard", "axes": [ -0.0038910508155822754, -0.027420520782470703, -0.011734187602996826, -0.011734247207641602 ], "buttons": [ { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 } ], "vibrationActuator": { "type": "dual-rumble", "playEffect": "function playEffect() { [native code] }", "reset": "function reset() { [native code] }" } }, { "id": "Wireless Controller (STANDARD GAMEPAD Vendor: 054c Product: 09cc)", "index": 1, "connected": true, "timestamp": 436123.79, "mapping": "standard", "axes": [ 0, 0, 0, 0 ], "buttons": [ { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": true, "value": 0 }, { "pressed": false, "touched": true, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 }, { "pressed": false, "touched": false, "value": 0 } ], "vibrationActuator": { "type": "dual-rumble", "playEffect": "function playEffect() { [native code] }", "reset": "function reset() { [native code] }" } }, null, null, 4, "function item() { [native code] }" ]

Index: 1

Error message (if any)

No error messages

Emile-ajar commented 4 years ago

Same problem with an Xbox controller, AnJoy doesn't work at all and there's no error message.

glutanimate commented 4 years ago

Thanks for the reports, guys. This is likely caused by #13: Anki versions 2.1.17 to 2.1.19 ship with a buggy widget toolkit that breaks gamepad support. This should be fixed with Anki 2.1.20. If you guys feel adventurous, you could give the 2.1.20 beta a try: https://apps.ankiweb.net/downloads/beta/

The latest release as of writing this comment is 2.1.20beta10: macOS Windows

For a full list of changes and other information on the beta release please see here: https://apps.ankiweb.net/docs/beta.html

If you guys do give the beta try, I would highly appreciate it if you could let me how it fares for you (both regarding gamepad support and anything else). 2.1.20 is likely to release soon, so any additional feedback would be super helpful.

glutanimate commented 4 years ago

@DryIce1: Actually, in your case the issue likely also lies in #7. I.e.: The controller is being recognized (which even on 2.1.17-2.1.19 does happen sometimes), but the system reports multiple virtual controllers and AnJoy selects the wrong one. I'm working on a fix for that by allowing users to manually choose the gamepad they want to use (virtual or actual).

Still, it would be interesting to see if 2.1.20 changes anything!

Emile-ajar commented 4 years ago

Xbox controller works as normal again on Windows 10 with Anki 2.1.20 (just updated).

glutanimate commented 4 years ago

@Emile-ajar Awesome, really happy to hear that!

@DryIce1 Have you had a chance to give Anki 2.1.20 a try, yet? It just came out of beta, so it should be stable enough for regular use now.