renpy button remapping

mmmonsterkill

Well-Known Member
Aug 30, 2016
1,537
1,716
anyone know a way to remap buttons for renpy in general, id prefer it i could map the skip button to a sidebutton on the mouse so i can game with one hand :sneaky:
 

MissFortune

I Was Once, Possibly, Maybe, Perhaps… A Harem King
Respected User
Game Developer
Aug 17, 2019
4,934
8,054
anyone know a way to remap buttons for renpy in general, id prefer it i could map the skip button to a sidebutton on the mouse so i can game with one hand :sneaky:
Can you program what the side buttons do on your mouse do? Should be able to just set one of them as CTRL.

But if you want to manually remap a game, then you're gonna have to UnRen (I think, at least.) the game/project and find this file: renpy/common/00keymap.rpy. Open it in a code editor of some sort. Atom, ++, etc. should be easy enough. Then you're going to look for this line:

Code:
 # These keys control skipping.
    skip = [ 'K_LCTRL', 'K_RCTRL' ],
    stop_skipping = [ ],
    toggle_skip = [ 'K_TAB' ],
    fast_skip = [ '>', 'shift_K_PERIOD' ],
I believe K_CTRL on the top skip line should be 'mouseup_7', though it could be 'mouseup_6'. It might take a bit of experimenting, but I believe that's the general process.