Fix controller config generator.
parent
a24a9c266f
commit
acebfc4e4d
|
@ -38,7 +38,10 @@ def add_input_bindings(group, bindings, force_binding=None, keymap=keymap_digita
|
||||||
for ss in x:
|
for ss in x:
|
||||||
st = ss.split()
|
st = ss.split()
|
||||||
if st[0] == 'game_action':
|
if st[0] == 'game_action':
|
||||||
|
if st[2][-1] == ",":
|
||||||
action_name = st[2][:-1]
|
action_name = st[2][:-1]
|
||||||
|
else:
|
||||||
|
action_name = st[2][:]
|
||||||
if force_binding is None:
|
if force_binding is None:
|
||||||
binding = keymap[i.lower()]
|
binding = keymap[i.lower()]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue