ebiten/internal/gamepaddb
divVerent 47de8027b9
internal/gamepaddb: fix mapping support for e.g. dpleft:-a0. (#2335)
SDL interprets this as "map -1 to 1, map 0 to -1", so we should do the same.

This fix contains two parts:
* Fix the intended output range.
* Also fix the formula to map a range to a range.
The fix does not change behavior if a "-a" mapping isn't used, as in any other case max-min == 1 or max+min == 0.

Fixes #2334
2022-09-20 00:34:46 +09:00
..
button.go internal/gamepaddb: move driver.StandardGamepadButton to gamepaddb.StandardButton 2022-02-05 23:11:09 +09:00
gamecontrollerdb.txt internal/gamepaddb: update the database 2022-08-19 02:54:03 +09:00
gamepaddb_test.go internal/gamepaddb: bug fix: don't panic with invalid inputs 2022-07-29 12:14:20 +09:00
gamepaddb.go internal/gamepaddb: fix mapping support for e.g. dpleft:-a0. (#2335) 2022-09-20 00:34:46 +09:00
sdl.go internal/gamepaddb: enable the database for Android 2022-09-09 22:20:39 +09:00