I have an USB Barcode Scanner Generic when I connect this to my pc is recognized like a Keyboard but when I connect this to my Due don't get the code that scan, I am using the example https://www.arduino.cc/en/Reference/KeyPressed when I prove this with a Keyboard USB whether get the keys pressed. The controllers that the PC show me in device administrator are the same in the Keyboard and in the Barcode Scanner. Only change the PID and the VID of the devices. Can you say me were is wrong?
HID\VID_1D57&PID_001C&REV_0105 HID\VID_1D57&PID_001C HID_DEVICE_SYSTEM_KEYBOARD HID_DEVICE_UP:0001_U:0006 HID_DEVICE
HID Keyboard Device