I am currently making a game and I wanted to add controller support.
Here is my current code:
from inputs import get_gamepad
while 1:
events = get_gamepad()
for event in events:
print(event.ev_type, event.code, event.state)
I am trying to make it so, for say when I press the A button it sends the message:
"a"
instead of:
Key BTN_SOUTH 1
Sync SYN_REPORT 0
Key BTN_SOUTH 0
Sync SYN_REPORT 0
Thanks for taking the time to read this