ebiten/internal/uidriver/glfw
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
..
graphics_darwin.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
graphics_opengl.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
hideconsole_notwindows.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
hideconsole_windows.go Clean up the 'js' build tags 2020-10-07 01:33:10 +09:00
input.go ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
keys.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
run_notsinglethread.go internal/uidriver/glfw: Bug fix: do not execute loop function if init failed (#1689) 2021-06-29 23:51:25 +09:00
run_singlethread.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
ui_darwin.go internal/uidriver/glfw: Bug fix: Memory leak in Objective-C code 2021-07-07 04:34:21 +09:00
ui_unix.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
ui_windows.go internal/uidriver/glfw: Native macOS implementation for setting cursor shape (#1624) 2021-05-02 14:50:50 +09:00
ui.go ebiten: Add IsWindowBeingClosed / SetWindowClosingHandled / IsWindowClosingHandled 2021-06-14 02:29:11 +09:00
window.go ebiten: Add IsWindowBeingClosed / SetWindowClosingHandled / IsWindowClosingHandled 2021-06-14 02:29:11 +09:00