Calling window.navigator.getGamepads()
returns a valid list of Gamepad
objects, but the axes and buttons properties are always null
.
The index and ID properties are all valid though. Am I missing something or does it just not work yet?
http://api.dartlang.org/docs/bleeding_edge/dart_html/Gamepad.html
The Gamepad API works in dart, just not in the dartium browser (see Issue 15119). If you need to use the API, either create a new browser launch, or right-click your html file and then click on 'Run as JavaScript'. Either of these solutions will launch in your standard browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With