mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 01:16:26 +00:00
Fixed bug 4024 - remove trailing comma of Controller mappings
because it reports an error "Unexpected controller element"
This commit is contained in:
@@ -20,7 +20,7 @@ def save_controller(line):
|
||||
bindings = sorted(match.group(4).split(","))
|
||||
if (bindings[0] == ""):
|
||||
bindings.pop(0)
|
||||
entry.extend(",".join(bindings) + ",")
|
||||
entry.extend(",".join(bindings))
|
||||
entry.append(match.group(5))
|
||||
controllers.append(entry)
|
||||
|
||||
|
Reference in New Issue
Block a user