PyGame is a Python library that allow you to create games in python. It can utilize controllers and create can create GUIs.
$ pip install pygameor$ python -m pip install pygame# PyGame Example: Basic Controller Reading Scriptimport pygame# Initialization of PyGame pygame.init()pygame.display.init() pygame.joystick.init()while True: # Get controller readings pygame.event.get() joystick = pygame.joystick.Joystick(0) joystick.init() # Print reading from x axis on left joystick xAxisLeft = joystick.get_axis(0) print xAxisLefthttps://www.pygame.org/wiki/tutorials (PyGame Site's Tutorial)
https://github.com/BSMRKRS/Controller-Support.git (BSM's Controller-Support)