xemu icon indicating copy to clipboard operation
xemu copied to clipboard

ui: Support changing controller/keyboard mappings

Open antangelo opened this issue 1 year ago • 5 comments

Adds a configuration scheme and UI for remapping keyboard/gamepad inputs to the emulated controller. I tried to keep it as modular as possible so that #1478 can extend this system with other devices and the other devices can be mapped independently.

Resolves #136 and supersedes #1301

Leaving in draft initially as this requires some genconfig PRs to be merged-- the genconfig submodule is currently pointed to my fork. I've formatted the PR using clang-format, which is why it differs at points from neighboring code. I am leaving it as-is because formatting code I haven't touched will make this already large change harder to review, but can do so if needed.

image

antangelo avatar Aug 07 '23 02:08 antangelo

Hello! Good job! Will there be mouse support?

UserGit-2021 avatar Aug 07 '23 05:08 UserGit-2021

Hello! Good job! Will there be mouse support?

Mouse support is out of scope for this PR

antangelo avatar Aug 07 '23 16:08 antangelo

Can we also have an option to switch the controller image to Controller S?

AkihitoZero5454 avatar Oct 24 '23 17:10 AkihitoZero5454

It is planned to add mapping profiles? That way they can be assigned per-game.

ElTioRata avatar Jan 14 '24 19:01 ElTioRata