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

Change keybindings #249

Open
zanprgmr opened this issue Jun 14, 2023 · 3 comments
Open

Change keybindings #249

zanprgmr opened this issue Jun 14, 2023 · 3 comments

Comments

@zanprgmr
Copy link

I wanted to suggest an improvement for PyBoy, the Game Boy emulator. It would be great if there was an easy way to change the keybindings. Perhaps you could add a function or a "Wrapper" that allows users to customize the keybindings more easily. This would make PyBoy more user-friendly and accessible.

Additionally, I think it would be awesome if the PyBoy community could get involved in improving the keybindings. It would be amazing to see the community implement controller compatibility, so users can enjoy PyBoy with their preferred controllers. By opening up the keybindings code to community contributions, we can all work together to enhance this aspect of the emulator.

I really appreciate the work you've put into PyBoy so far, and I believe these enhancements would make it even better. Thank you for considering this request, and I'm excited to see what the future holds for PyBoy!

@Baekalfen
Copy link
Owner

It's definitely something that would be nice to have. I know others have worked on it before.

Just to point out. There is controller support already, but it's just not documented:

CONTROLLER_DOWN = {

@Baekalfen Baekalfen changed the title Keybindings Change keybindings Oct 23, 2023
@bhaskar253
Copy link

bhaskar253 commented Nov 7, 2023

@Baekalfen
I have a query regarding how to approach this issue, one thing I was thinking to add some pre-defined mappings to some config file & read it like
SDL_GameControllerAddMappingsFromFile( 'gamecontrollerdb.cfg' );
is this approach ok?

@Baekalfen
Copy link
Owner

You'll have to check, but it looks like that function might be to map hardware to events. What we're looking for here is mapping events to PyBoy

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

No branches or pull requests

3 participants