I use the code below to get a HID device. But I don't whether the device is opened or closed.
I try to use HIDDevice.is_opened() to get the status, but it throw a error SyntaxError: invalid syntax.
What should I do to get the status of the HID device?
I use the code below to get a HID device. But I don't whether the device is opened or closed. I try to use
HIDDevice.is_opened()
to get the status, but it throw a errorSyntaxError: invalid syntax
. What should I do to get the status of the HID device?