1
0
Fork 0
mirror of https://github.com/Detanup01/gbe_fork.git synced 2025-08-24 00:03:44 +02:00

Merge pull request #95 from anadius/controller-config-generator-fix

access duplicated keys in VDF correctly in parse_controller_vdf.py
This commit is contained in:
Detanup01 2024-11-23 21:06:24 +01:00 committed by GitHub
commit fbac37999a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,14 +31,12 @@ keymap_digital = {
def add_input_bindings(group, bindings, force_binding=None, keymap=keymap_digital):
if "inputs" not in group:
return bindings
for i in group["inputs"]:
for act in group["inputs"][i]:
for fp in group["inputs"][i][act]:
for bd in group["inputs"][i][act][fp]:
for bbd in group["inputs"][i][act][fp][bd]:
for i, i_val in group["inputs"].iteritems():
for act in i_val.itervalues():
for fp in act.itervalues():
for bd in fp.itervalues():
for bbd, ss in bd.iteritems():
if bbd.lower() == 'binding':
x = group["inputs"][i][act][fp][bd].get_all_for(bbd)
for ss in x:
st = ss.split()
supported_binding = False
if st[0].lower() == 'game_action':