11 lines
245 B
Python
11 lines
245 B
Python
import inputs
|
|
|
|
print(inputs.devices.gamepads)
|
|
|
|
while True:
|
|
events = inputs.get_gamepad()
|
|
for event in events:
|
|
if "ABS" not in event.code and "REPORT" not in event.code :
|
|
print(event.ev_type, event.code, event.state)
|
|
|