device_manager = InputDeviceManager.get_global_ptr()
device_manager.update()
for device in device_manager.get_devices():
print("device:", device)
I probably need to be in “input” group to have permission to access dev nodes. In systemd-type OS I probably need to request access through logind. Are there any logs or errors from Panda to see what the program is trying to access and where it can’t?
According to the description, this generates a device connection event. I suppose we need to check in a loop whether the input device is inserted into the port or removed from it.
Have you tried the “device_tester” sample program? (It should be found in the “gamepad” folder.)
It would be interesting to know whether that program shows your devices–if it doesn’t, then there might be an OS-level issue or a bug in Panda; if it does, then we can look to that program to figure out what’s going wrong in your code.