gamepad top-level property

dynamic get gamepad

This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. Available only in secure contexts.

MDN Reference

Implementation

_i2.dynamic get gamepad => _i4.getProperty(
      _self,
      'Gamepad',
    );