mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
[PR #806] Allow mapping axes to buttons #133
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/stenzek/duckstation/pull/806
State: closed
Merged: Yes
This PR adds an option to map gamepad buttons to axes on an emulated controller. As of now, this is useless for analog sticks because it is yet impossible to map buttons to halves of axes (so e.g. mapping the left stick to WSAD is still not possible). However, this is useful for pressure sensitive buttons, for example the ones found on a NeGcon controller. With this change, it's possible to map NeGcon's L/R buttons to LB/RB on the X1/PS4 gamepads, at the cost of losing pressure sensitivity for them.
This PR is still in early stages and is submitted only in case something has been done in an extremely wrong way. The to-do list looks as follows:
Make changes to the SDL GUINot needed, SDL GUI doesn't allow for remappingImplements #795