modified to compile for me

Dependencies:   FATFileSystem

Dependents:   N64_Output_XPAD

Fork of F401RE-USBHost by Norimasa Okamoto

Revision:
24:75435a7ab25b
Parent:
9:7f9f64cf5ded
--- a/USBHostHID/USBHostKeyboard.h	Sun May 01 03:18:11 2016 +0000
+++ b/USBHostHID/USBHostKeyboard.h	Sun Oct 30 15:58:04 2016 +0000
@@ -69,6 +69,17 @@
             onKeyCode = ptr;
         }
     }
+    
+    /**
+     * Attach a callback called when a keyboard event is received
+     *
+     * @param ptr function pointer
+     */
+    inline void attach(void (*ptr)(uint8_t rep[9])) {
+        if (ptr != NULL) {
+            onKeyRaw = ptr;
+        }
+    }
 
 protected:
     //From IUSBEnumerator
@@ -90,6 +101,8 @@
 
     void (*onKey)(uint8_t key);
     void (*onKeyCode)(uint8_t key, uint8_t modifier);
+    void (*onKeyRaw)(uint8_t rep[9]);
+    // TODO: add new callback function to send raw state
 
     int report_id;