Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information