Page 1 of 1

Changing key binding

Posted: Thu May 24, 2018 3:09 pm
by kostek00
I'm wondering if there is a way to disable all current keyboard shortcuts with one command or something similar or do I have to turn them off one by one? I want to make my own shortcuts.

Re: Changing key binding

Posted: Thu May 24, 2018 3:48 pm
by Ocelot
There is no command to disable all current bindings on the fly, but you can edit default keymap: https://www.renpy.org/doc/html/keymap.html

Make sure to read note in the beginning.

Re: Changing key binding

Posted: Thu May 24, 2018 4:10 pm
by kostek00
Removing all unnecessary will be such a pain.

Re: Changing key binding

Posted: Thu May 24, 2018 4:26 pm
by Ocelot
Wait, you said you wanted to remove everything in OP post, it is a single line. Not to mention that you can simply overwrite dictionary with "correct" one (which technically is a single statement too)

Re: Changing key binding

Posted: Fri May 25, 2018 11:18 am
by kostek00
Yes, I know I can overwrite current ones but this will actually take some time. If on the other hand I could just remove them all with one command it would be much easier for me to add those that will be of any use in game.

Re: Changing key binding

Posted: Fri May 25, 2018 11:52 am
by Remix
So,

config.keymap = {} # empty dictionary, no values, no keys, no anything, just empty

is hard work?

On an aside: You will lose players from your player-base if you veer too far from Ren'Py's standard key settings. Many already know the shortcut keys and will take having them removed or altered as cause to quit.

Re: Changing key binding

Posted: Fri May 25, 2018 12:45 pm
by kostek00
Oh, so this is how you clear them all.

With hard work I ment about removing all of them individually. Also there will be help menu in game with shortcuts.

Re: Changing key binding

Posted: Fri May 25, 2018 7:20 pm
by kivik
Strongly agree with Remix's point about not changing standard key settings.

The fact that you're removing all the keybindings means people won't even be able to access the help menu as normal with right click / esc, further reducing the likelihood of people accessing your help menu (which is not very often). You're actively putting roadblocks on your own game to drop players - it's anti-player design which is as far from what you want to do as possible as a game / software developer.

Like it or not, you need to put player first if you want to be a good game maker.

Re: Changing key binding

Posted: Fri Nov 26, 2021 2:31 am
by Bertran
Well, you know, the game is crashing when players press "S" key (screenshot) and showing something strange when pressing "A" key. I really want to turn it off, what the hell