I've read through the documentation at https://www.renpy.org/doc/html/keymap.html but I'm not sure how to add a new function, it seems like they have to be setup somewhere, the keymap dict seems to be made of lists of keybidings already defined, but I see no way to add your own.
For now the only way I've been able to come up with is using a screen like this:
Code: Select all
define config.rollback_enabled = False
screen mousewheel_rebind():
key 'mousedown_4' action ShowMenu("history")
label start:
show screen mousewheel_rebind #and never be hidden, hopefully
"The game start here!"
Any suggestions?