ST/USBHOST forked to add another HID handler for raw keyboard data to get more detail not available with current handlers (all pressed keys, all releases, and periodic updates)

Dependents:   C64-stm429_discovery

Revision:
7:9dc1cb9d5e12
Parent:
5:fc157e6bd5a5
--- a/USBHostHID/USBHostKeyboard.cpp	Wed Apr 26 20:08:31 2017 +0000
+++ b/USBHostHID/USBHostKeyboard.cpp	Mon Apr 13 05:25:10 2020 +0000
@@ -146,6 +146,9 @@
     int index = (len == 9) ? 1 : 0;
     int len_listen = int_in->getSize();
     uint8_t key = 0;
+    if (len > 0 && onKeyData) {
+        (*onKeyData)(len, report);
+    }
     if (len == 8 || len == 9) {
         uint8_t modifier = (report[index] == 4) ? 3 : report[index];
         len_listen = len;
@@ -157,6 +160,7 @@
             (*onKeyCode)(report[index + 2], modifier);
         }
     }
+    
     if (dev && int_in)
         host->interruptRead(dev, int_in, report, len_listen, false);
 }