For any given frame of your game loop, you can poll if a button was pressed using
For the button key, you can use either a standard button code or a human-readable button name, pictured here:
You can also poll the axes of the stick using
positionx += Joypositiony += Joy
This project is licensed under the MIT license.