mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-27 16:28:40 +00:00
sort_controllers.py: fixed parsing SDL_PRIVATE_GAMEPAD_DEFINITIONS
This commit is contained in:
parent
24bdbb8bf4
commit
c099d0525e
1 changed files with 3 additions and 0 deletions
|
|
@ -146,6 +146,9 @@ for line in input:
|
|||
elif (line.startswith("#if")):
|
||||
print(f"Parsing {line.strip()}")
|
||||
output.write(line)
|
||||
elif ("SDL_PRIVATE_GAMEPAD_DEFINITIONS" in line):
|
||||
write_controllers()
|
||||
output.write(line)
|
||||
elif (line.startswith("#endif")):
|
||||
write_controllers()
|
||||
output.write(line)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue