|
SDL
2.0
|
Functions | |
| def | save_controller (line) |
| def | write_controllers () |
Variables | |
| string | filename = "SDL_gamecontrollerdb.h" |
| input = open(filename) | |
| output = open(filename + ".new", "w") | |
| bool | parsing_controllers = False |
| list | controllers = [] |
| dictionary | controller_guids = {} |
| split_pattern = re.compile(r'([^"]*")([^,]*,)([^,]*,)([^"]*)(".*)') | |
| def sort_controllers.save_controller | ( | line | ) |
| def sort_controllers.write_controllers | ( | ) |
Definition at line 27 of file sort_controllers.py.
References save_controller().
| dictionary sort_controllers.controller_guids = {} |
Definition at line 13 of file sort_controllers.py.
| list sort_controllers.controllers = [] |
Definition at line 12 of file sort_controllers.py.
Referenced by SDL_GameControllerAddMappingsFromRW(), SDL_SYS_JoystickInit(), SDL_SYS_MFIJoystickUpdate(), and SDL_SYS_RemoveJoystickDevice().
| string sort_controllers.filename = "SDL_gamecontrollerdb.h" |
Definition at line 8 of file sort_controllers.py.
Referenced by main().
| sort_controllers.input = open(filename) |
Definition at line 9 of file sort_controllers.py.
Definition at line 10 of file sort_controllers.py.
Referenced by SDL_LogOutput(), and stdlib_sscanf().
| bool sort_controllers.parsing_controllers = False |
Definition at line 11 of file sort_controllers.py.
| sort_controllers.split_pattern = re.compile(r'([^"]*")([^,]*,)([^,]*,)([^"]*)(".*)') |
Definition at line 14 of file sort_controllers.py.