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

Is it possible to add custom keybindings #339

Closed
iimog opened this issue Sep 1, 2024 · 1 comment
Closed

Is it possible to add custom keybindings #339

iimog opened this issue Sep 1, 2024 · 1 comment

Comments

@iimog
Copy link

iimog commented Sep 1, 2024

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
Copy link
Owner

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

iimog added a commit to iimog/PyBoy that referenced this issue Sep 6, 2024
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

No branches or pull requests

2 participants