From 5d73388fd8c452081b6a47ac070e9c771e9ade60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Mon, 29 Feb 2016 00:38:03 +0100 Subject: [PATCH] Set up set configuration and set interface callbacks for the generic HID interface. --- right/composite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/right/composite.c b/right/composite.c index 281b123..f393aed 100644 --- a/right/composite.c +++ b/right/composite.c @@ -56,6 +56,7 @@ static usb_status_t UsbDeviceCallback(usb_device_handle handle, uint32_t event, UsbCompositeDevice.currentConfiguration = *temp8; UsbMouseSetConfigure(UsbCompositeDevice.mouseHandle, *temp8); UsbKeyboardSetConfigure(UsbCompositeDevice.keyboardHandle, *temp8); + UsbGenericHidSetConfigure(UsbCompositeDevice.keyboardHandle, *temp8); error = kStatus_USB_Success; break; case kUSB_DeviceEventGetConfiguration: @@ -70,6 +71,7 @@ static usb_status_t UsbDeviceCallback(usb_device_handle handle, uint32_t event, UsbCompositeDevice.currentInterfaceAlternateSetting[interface] = alternateSetting; UsbMouseSetInterface(UsbCompositeDevice.mouseHandle, interface, alternateSetting); UsbKeyboardSetInterface(UsbCompositeDevice.keyboardHandle, interface, alternateSetting); + UsbGenericHidSetInterface(UsbCompositeDevice.keyboardHandle, interface, alternateSetting); error = kStatus_USB_Success; } }