ebiten/internal/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
..
glfw internal/glfw: Update GLFW to 3.3.3 for Windows 2021-03-09 02:19:34 +09:00
callback_notwindows.go ebiten: Add IsWindowBeingClosed / SetWindowClosingHandled / IsWindowClosingHandled 2021-06-14 02:29:11 +09:00
callback_windows.go ebiten: Add IsWindowBeingClosed / SetWindowClosingHandled / IsWindowClosingHandled 2021-06-14 02:29:11 +09:00
const.go ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
Dockerfile internal/glfw: Update Dockerfile and regenerate DLLs 2021-04-17 20:11:10 +09:00
gen.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
gen.sh internal/glfw: Update Dockerfile and regenerate DLLs 2021-04-17 20:11:10 +09:00
generate.go Bug fix: Compile error for Wasm 2020-10-07 02:23:45 +09:00
glfw_notwindows.go ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
glfw_windows.go ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
glfwdll_windows_386.go internal/glfw: Update Dockerfile and regenerate DLLs 2021-04-17 20:11:10 +09:00
glfwdll_windows_amd64.go internal/glfw: Update Dockerfile and regenerate DLLs 2021-04-17 20:11:10 +09:00
glfwdllhash_windows_386.go internal/glfw: Update Dockerfile and regenerate DLLs 2021-04-17 20:11:10 +09:00
glfwdllhash_windows_amd64.go internal/glfw: Update Dockerfile and regenerate DLLs 2021-04-17 20:11:10 +09:00
keys.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
load_windows.go Update GLFW: suppress joystick issue (again) 2021-07-15 01:02:57 +09:00
native_darwin.go ui: Replace the native window's type (unsafe.Pointer) with uintptr 2020-09-04 00:51:48 +09:00
native_windows.go ui: Replace the native window's type (unsafe.Pointer) with uintptr 2020-09-04 00:51:48 +09:00
tools.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
type.go ebiten: Add IsWindowBeingClosed / SetWindowClosingHandled / IsWindowClosingHandled 2021-06-14 02:29:11 +09:00