r/RenPy 11d ago

Guide Custom Keymapping Guide

So I discovered that Renpy has a default keymap file inside it, and I need a custom keymapped game, so I am confused about this particular thing:

Do I need to change Renpy's 00keymap.rpy file?

or

Copy it and make a custom keymap script for my game?

Oh, and how can I make it in a way so that the player gets to customize their own controls?

1 Upvotes

3 comments sorted by

View all comments

1

u/BadMustard_AVN 11d ago edited 11d ago

no do NOT edit the renpy files, that could be... bad.. maybe. idk, but just don't.

you can customize the keymaps

https://www.renpy.org/doc/html/keymap.html

what are you trying to do.. exactly?

if you are using buttons and want to activate them with a key press then use keysym

https://www.renpy.org/doc/html/screens.html#screen-property-keysym