Does window.navigator.getGamepads () work in Dart?

Calling window.navigator.getGamepads() returns a valid list of Gamepad objects, but the axis and button properties are always null .

However, the properties of the index and identifier are valid. Am I missing something or is it still not working?

http://api.dartlang.org/docs/bleeding_edge/dart_html/Gamepad.html

+7
dart
source share
1 answer

The Gamepad API works in the dart, 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 "Run as JavaScript." Each of these solutions will be launched in your standard browser.

+1
source share

All Articles