while(iterator != NULL) {
dev = (struct usb_device*)iterator->data;
+ if(dev == NULL) {
+ continue;
+ }
if(dev->conf->intf->bInterfaceClass == HID_CLASSCODE &&
dev->conf->intf->bInterfaceSubClass == 1 && /* keyboard support boot protocol? */
{
}
+u8 usb_hidkb_inuse()
+{
+ return hidkb.data ? 1 : 0;
+}
+
struct kbrep *usb_hidkb_getChars() {
struct usb_device *dev = (struct usb_device*) hidkb.data;
struct kbrep *ret = (struct kbrep*) malloc(sizeof(struct kbrep));