Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: Support changing controller/keyboard mappings #1516

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

antangelo
Copy link
Contributor

@antangelo antangelo commented Aug 7, 2023

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

@UserGit-2021
Copy link

UserGit-2021 commented Aug 7, 2023

Hello! Good job! Will there be mouse support?

@antangelo
Copy link
Contributor Author

Hello! Good job! Will there be mouse support?

Mouse support is out of scope for this PR

@antangelo antangelo marked this pull request as ready for review August 21, 2023 00:07
ui/xui/main-menu.cc Outdated Show resolved Hide resolved
ui/xui/main-menu.cc Outdated Show resolved Hide resolved
ui/xui/main-menu.cc Outdated Show resolved Hide resolved
ui/xemu-controllers.cc Outdated Show resolved Hide resolved
ui/xemu-controllers.cc Outdated Show resolved Hide resolved
@mborgerson mborgerson self-assigned this Oct 17, 2023
@antangelo antangelo force-pushed the ui/rebinding branch 2 times, most recently from 2df6c52 to d9a01b2 Compare October 18, 2023 17:28
@AkihitoZero5454
Copy link

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

@antangelo antangelo force-pushed the ui/rebinding branch 2 times, most recently from 2a055d3 to 35244d8 Compare November 9, 2023 01:56
@ElTioRata
Copy link

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

@faha223
Copy link
Contributor

faha223 commented Sep 20, 2024

This section takes up a lot of space vertically in the UI. Would it be better to have the grid in a collapsible container?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement gamepad button/axis remapping
6 participants