Baekalfen / PyBoy

Game Boy emulator written in Python
Other
4.64k stars 476 forks source link

Is it possible to add custom keybindings #339

Closed iimog closed 2 months ago

iimog commented 2 months ago

I wrote some code to automatically play Tetris using the game wrapper. I would like to toggle between the automatic play and manual play (e.g. to navigate menus and to see how the algorithm handles certain situations). I saw Phwiddy use a text file agent_enabled.txt here to toggle between those modes. I think it would be much more convenient to add a custom keybinding to toggle. Is there any way to achieve this right now with pyboy (and sdl2)? Probably related to #249

Thank you for this awesome tool and in advance for any help!

Baekalfen commented 2 months ago

This seems more like a discussion of a specific solution, rather than an issue with PyBoy. Discord is much better suited for this https://discord.gg/Zrf2nyH