Fixed detecting the wired XBox 360 controller on Linux
Also added some more debug output to detect issues
This commit is contained in:
parent
c78476dadc
commit
4ab350d4f2
4 changed files with 23 additions and 7 deletions
|
@ -29,6 +29,8 @@ def write_controllers():
|
|||
global controller_guids
|
||||
for entry in sorted(controllers, key=lambda entry: entry[2]):
|
||||
line = "".join(entry) + "\n"
|
||||
if not line.endswith(",\n") and not line.endswith("*/\n"):
|
||||
print "Warning: '%s' is missing a comma at the end of the line" % (line)
|
||||
if (entry[1] in controller_guids):
|
||||
print "Warning: entry '%s' is duplicate of entry '%s'" % (entry[2], controller_guids[entry[1]][2])
|
||||
controller_guids[entry[1]] = entry
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue