Been a while since i've posted. I realized something a bit weird while binding stuff to gamepad keys, that technically should work but doesn't for some reason
The concrete situation is this: i have a "SKIP" function on the left CTRL keyboard button. When i press it, SKIP happens, when i release it - it stops. So i want the same happening on the gamepad - in particular, i want to press the left trigger so the SKIP would start, and when the trigger is released, SKIP stops. So i added this in "options" to the list of my keymap:
Code: Select all
config.pad_bindings["pad_lefttrigger_neg"].append("stop_skipping")
config.pad_bindings["pad_lefttrigger_pos"].append("skip")
However, it gives me an error on start:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/options.rpy", line 165, in script
init python:
File "game/options.rpy", line 205, in <module>
config.pad_bindings["pad_lefttrigger_neg"].append("stop_skipping")
KeyError: u'pad_lefttrigger_neg'
But trying to set the "releasing" of it leaves me with this error. Any ideas?.. Thank you in advance!!