Skip to content

Commit

Permalink
Add missing hid descriptor reporting for joystick interface
Browse files Browse the repository at this point in the history
  • Loading branch information
alecool committed Dec 6, 2018
1 parent ae5c50f commit 384dddb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tmk_core/protocol/usb_descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,12 @@ uint16_t get_usb_descriptor(const uint16_t wValue,
Address = &ConfigurationDescriptor.Console_HID;
Size = sizeof(USB_HID_Descriptor_HID_t);
break;
#endif
#ifdef JOYSTICK_ENABLE
case JOYSTICK_INTERFACE:
Address = &ConfigurationDescriptor.Joystick_HID;
Size = sizeof(USB_HID_Descriptor_HID_t);
break;
#endif
}
break;
Expand Down Expand Up @@ -1080,8 +1086,8 @@ uint16_t get_usb_descriptor(const uint16_t wValue,
#endif
#ifdef JOYSTICK_ENABLE
case JOYSTICK_INTERFACE:
Address = &ConfigurationDescriptor.Joystick_HID;
Size = sizeof(USB_HID_Descriptor_HID_t);
Address = &JoystickReport;
Size = sizeof(JoystickReport);
break;
#endif
}
Expand Down

0 comments on commit 384dddb

Please sign in to comment.