Fork to support Mouse boot protocol and steam controllers.
Fork of USBHOST by
Diff: USBHostHID/USBHostKeyboard.cpp
- Revision:
- 7:cc595e523032
- Parent:
- 5:fc157e6bd5a5
--- a/USBHostHID/USBHostKeyboard.cpp Wed Apr 26 20:08:31 2017 +0000 +++ b/USBHostHID/USBHostKeyboard.cpp Thu Aug 17 22:08:04 2017 +0000 @@ -146,6 +146,17 @@ int index = (len == 9) ? 1 : 0; int len_listen = int_in->getSize(); uint8_t key = 0; + + /*{ + int index; + for (index=0;index < len_listen; index++) + { + printf("%2x ",report[index]); + } + + if (index>0) printf(" %x:%x \r\n",dev->getVid(), dev->getPid()); + }*/ + if (len == 8 || len == 9) { uint8_t modifier = (report[index] == 4) ? 3 : report[index]; len_listen = len;