ebiten/internal/gamepaddb
Hajime Hoshi aa694be6f6 ebiten: Add the standard gamepad layout
This change introduces the standard gamepad layout. This changes adds
these APIs:

  * func HasGamepadStandardLayoutMapping
  * func IsGamepadStandardButtonPressed
  * func GamepadStandardAxisValue
  * type StandardGamepadButton
  * type StandardGamepadAxis

The standard gamepad layout is based on the web standard. See
https://www.w3.org/TR/gamepad/#remapping.

On desktops, the SDL's gamecontrllerdb.txt is used. If the gamepad is
listed in the text file, the mapping works. GLFW's mapping featrue is
not used.

On browsers, the property of a gamepad 'mapping' is used. When the
mapping value is 'standard', the gamepad is recognized to have the
standard mapping.

On mobiles, the implementation is still WIP.

Updates #1557
2021-07-20 01:32:28 +09:00
..
gamecontrollerdb.txt ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
gamecontrollerdb.txt.go ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
gamepaddb_ios.go ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
gamepaddb_notios.go ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
gamepaddb.go ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00