mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-29 18:11:38 +00:00
Sort the entries in the controller mapping
This commit is contained in:
@@ -71,6 +71,10 @@ def save_controller(line):
|
||||
print("Controller '%s' not unique, skipping" % name)
|
||||
return
|
||||
|
||||
pos = find_element("platform", bindings)
|
||||
if pos >= 0:
|
||||
bindings.insert(0, bindings.pop(pos))
|
||||
|
||||
pos = find_element("sdk", bindings)
|
||||
if pos >= 0:
|
||||
bindings.append(bindings.pop(pos))
|
||||
|
||||
Reference in New Issue
Block a user