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/UX] Ability to remap controller buttons #1250

Open
wonx opened this issue Oct 20, 2024 · 1 comment
Open

[UI/UX] Ability to remap controller buttons #1250

wonx opened this issue Oct 20, 2024 · 1 comment
Labels
ui/ux UI/UX improvements or suggestions

Comments

@wonx
Copy link

wonx commented Oct 20, 2024

Hi,

I love that RomM embeds emulatorjs to play games in the browser. However, I noticed that the default controller mapping switches A and B, and Y and X in my gamepad (a 8BitDo Pro 2). I can reconfigure it in the "Control settings" section when the game is running, but I believe these changes only reside in the browser window and only for that specific system.

I'd like a way to be able to permanently remap controller buttons. I found this in emulatorjs documentation https://emulatorjs.org/docs4devs/control-mapping , but I don't even know where to start making those changes.

Is this currently possible?

@wonx wonx added the ui/ux UI/UX improvements or suggestions label Oct 20, 2024
@gantoine
Copy link
Member

gantoine commented Nov 15, 2024

Edit: There is a hacky way to do it, which would be to open the browser console and set window.EJS_defaultControls property before launching emulatorjs. Though you'd need to do that every time you want to play, or use a tampermonkey script to set it. Not recommended.

Not currently possible. We'd need to add something in the config UI so users can set controller mappings, which is a bit tricky. Going to backlog this if someone wants to work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui/ux UI/UX improvements or suggestions
Projects
None yet
Development

No branches or pull requests

2 participants