title: Using Gamepads in Google Dart
body: <p>I'm looking for code examples for the <a href="https://api.dartlang.org/apidocs/channels/be/#dart-dom-html.Gamepad" rel="nofollow">Gamepad API for Google Dart</a>.  </p>
  
  <p>I've tried relying on the API doc directly and attempted to write out an instance for it.</p>
  
  <pre><code>//Gamepad Example:
  
  Gamepad g = new Gamepad();
  g.id.toString(); // This doesn't seem to return anything...
  </code></pre>
  
  <p>If anyone has any code examples for this that would be fantastic!</p>