How to record state of xbox/gamepad controller in Python?
问题 I need to know at a specific time the value of all buttons of an xbox controller. The reason being that I'm building a training set for a neural network, and I'm trying to simultaneously take a snapshot of the screen and take a "snapshot" of the controller state. Note that I was able to successfully do this for a keyboard version of this project, but the xbox controller is giving me difficulty. What I've tried is creating a dictionary of buttons and values, and updating the dictionary every