I tried to use a gamepad with the Anki desktop APP, and it works!
When I enter “navigator.getGamepads()” in the console, it can detect the gamepad I used.
However, it does not work on my Android device. BTW, the browser on my Android device can detect the gamepad (it works fine when opening a gamepad tester website).
Does anyone have an idea on how to solve this problem?
The scenario I was about to use is I want to have the ability to trigger a specific function that is not provided in the default action list. For Example, one button to play the first audio, another button to stop the playing, etc. In other words, the ability to write a customized mapping to any javascript function would give users the freedom to play with their cards.
Dear David:
I tried the alpha11 and alpha14 versions today. However, navigator.getGamepads() still produces [null, null, null, null]. What might be the reason? I’m looking forward to hearing back from you.
Thank you!
Ye
This is debug info:
AnkiDroid Version = 2.17alpha14 (0717daab11cd9669997aea6a421ec94689120cb6)
Backend Version = 0.1.32-anki23.10.1 (23.10.1 fac9e0ee1436ba5ac3366c72dd9394a6e692b1cf)
Android Version = 10 (SDK 29)
ProductFlavor = full
Manufacturer = ONYX
Model = MaxLumi
Hardware = qcom
Webview User Agent = Mozilla/5.0 (Linux; Android 10; MaxLumi Build/2023-12-12_20-35_3.5_4687b1901; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/119.0.6045.193 Safari/537.36