PyBoyP
PyBoy14mo ago
Julius

[Solved] PyBoy Keyboard mapping

Update: I just saw the keymappings are in the installation page on https://github.com/Baekalfen/PyBoy/wiki/Installation#starting-pyboy
I skipped over that page, because I just used pip install and it worked.

--------

When running pyboy with the sample code:
from pyboy import PyBoy
pyboy = PyBoy('game_rom.gb')
while pyboy.tick():
    pass
pyboy.stop()

It starts and I can use "a" and the arrow keys to navigate the game. But for example b, start and select don't work, or I haven't found how to use them.
Any ideas?

Also, I somehow made a savestate and pressing "x" loads it, but I have no clue how I made it.

I couldn't find anything about this in the api docs, is there another place I could look? But chances are I'm just blind and overread it...^^
GitHub
Game Boy emulator written in Python. Contribute to Baekalfen/PyBoy development by creating an account on GitHub.
Was this page helpful?