Change keybindings
zanprgmr opened this issue · 3 comments
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!
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:
PyBoy/pyboy/plugins/window_sdl2.py
Line 66 in a464e69
@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?
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