As the synthesizer said, I need to go to a lower level.
Using pyusb:
import usb.core, usb.util, usb.control
dev = usb.core.find(idVendor=0x045e, idProduct=0x0780)
try:
if dev is None:
raise ValueError('device not found')
cfg = dev.get_active_configuration()
interface_number = cfg[(0,0)].bInterfaceNumber
intf = usb.util.find_descriptor(
cfg, bInterfaceNumber=interface_number)
dev.is_kernel_driver_active(intf):
dev.detach_kernel_driver(intf)
ep = usb.util.find_descriptor(
intf,
custom_match=lambda e: usb.util.endpoint_direction(e.bEndpointAddress) == usb.util.ENDPOINT_IN)
while True:
try:
a = ep.read(8, timeout=2000)
except usb.core.USBError:
pass
print a
except:
raise
This gives you the result: array('B', [0, 0, 0, 0, 0, 0, 0, 0])
pos: 0: (1 - , 2 - , 4 - , 8 - ) 1: 2 -7: key code .
:
[3, 0 , 89, 90, 91, 92, 93, 94]
:
ctrl+shift+numpad1+numpad2+numpad3+numpad4+numpad5+numpad6
- , , .