ebiten/internal
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
..
affine Revert "Revert 2 commits using ColorM cache" 2021-05-30 15:17:11 +09:00
atlas ebiten: Add EvenOdd to DrawTrianglesOptions and DrawShaderTrianglesOptions 2021-07-05 03:35:55 +09:00
buffered ebiten: Add EvenOdd to DrawTrianglesOptions and DrawShaderTrianglesOptions 2021-07-05 03:35:55 +09:00
clock internal/clock: Misspelling 2021-04-24 23:24:11 +09:00
debug Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
devicescale Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
driver ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
gamepaddb ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
glfw ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
graphics internal/graphics: Reafctoring 2021-06-28 23:28:43 +09:00
graphicscommand internal/restorable: Bug fix: Test failed on macOS (Metal) 2021-07-09 20:21:04 +09:00
graphicsdriver internal/graphicsdriver/opengl: Remove unused code using PBO 2021-07-14 21:51:27 +09:00
hooks internal/hooks: Enable to return error at suspend/resume audio 2021-05-04 23:09:01 +09:00
jsutil Remove support of Go 1.13 and Go 1.14 2021-06-07 21:44:22 +09:00
mipmap ebiten: Add EvenOdd to DrawTrianglesOptions and DrawShaderTrianglesOptions 2021-07-05 03:35:55 +09:00
packing packing: Bug fix: Extend could create a too big page 2020-12-31 17:33:27 +09:00
png Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
restorable internal/driver: Add Graphics.Initialize 2021-07-07 13:58:42 +09:00
shader internal/shaderir/glsl: Bug fix: Remove uncalled functions 2021-07-09 20:22:40 +09:00
shaderir internal/shaderir/glsl: Bug fix: Remove uncalled functions 2021-07-09 20:22:40 +09:00
testflock Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
testing testing: Bug fix: Lack of uniform variables 2020-12-09 11:52:45 +09:00
thread internal/thread: Refactoring 2021-06-15 00:43:48 +09:00
uidriver ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00