ebiten/internal/driver
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
..
compositemode.go ebiten: Add CompositeModeMultiply (#1251) 2020-07-18 21:37:17 +09:00
cursor.go internal/uidriver/glfw: Native macOS implementation for setting cursor shape (#1624) 2021-05-02 14:50:50 +09:00
event.go Fix misspellings 2019-10-12 01:10:53 +09:00
filter.go ebiten: Remove FilterDefault 2020-10-05 01:48:47 +09:00
gamepadbutton.go ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
graphics.go internal/restorable: Bug fix: Test failed on macOS (Metal) 2021-07-09 20:21:04 +09:00
input.go ebiten: Add the standard gamepad layout 2021-07-20 01:32:28 +09:00
keys.go ebiten: Change the key name convention to follow the Web standard 2021-04-14 22:49:07 +09:00
modifier.go event: Add Modifier 2019-09-03 01:12:50 +09:00
mousebutton.go input: Move MouseButton and GamepadButton to driver package 2019-03-30 23:19:52 +09:00
ui.go ebiten: Add IsWindowBeingClosed / SetWindowClosingHandled / IsWindowClosingHandled 2021-06-14 02:29:11 +09:00