Menu

📰
0

Reddit - Please wait for verification

Python Education·/u/No_Link_4379·2 days ago
#dxRi5P0d
Reading 0:00
15s threshold

I'm trying to read input from an original PS3 controller using HID. I followed the tutorial at https://blog.thea.codes/talking-to-gamepads-without-pygame/, but for some reason my code isn't working. I'm not receiving any values from the controller. Here's my code: import hid import time gamepad = hid.device() gamepad.open(0x054c, 0x0268) gamepad.set_nonblocking(True) while True: report = gamepad.read(64) #if report: print(report) time.sleep(0.2) (the controller is connected and everything else works. the only problem is that the only output that i get is [ ] ) submitted by /u/No_Link_4379 [link] [comments]

Read More