Skip to content
Snippets Groups Projects
Commit c0af7b37 authored by Sigrid Haflínudóttir's avatar Sigrid Haflínudóttir :peach:
Browse files

keyboard-fw: fix the ordering of media keys

parent d4f2271a
No related branches found
No related tags found
No related merge requests found
......@@ -40,14 +40,14 @@ const USB_Descriptor_HIDReport_Datatype_t PROGMEM MediaControlReport[] =
HID_RI_USAGE_PAGE(8, 0x0C), /* Consumer Page */
HID_RI_USAGE(8, 0x01), /* Consumer Controls */
HID_RI_COLLECTION(8, 0x01), /* Application */
HID_RI_USAGE(8, 0x70), /* Display Brightness Increment */
HID_RI_USAGE(8, 0x6F), /* Display Brightness Decrement */
HID_RI_USAGE(8, 0xB5), /* Next Track */
HID_RI_USAGE(8, 0x70), /* Display Brightness Decrement */
HID_RI_USAGE(8, 0x6F), /* Display Brightness Increment */
HID_RI_USAGE(8, 0xB6), /* Previous Track */
HID_RI_USAGE(8, 0xCD), /* Play/Pause (toggle) */
HID_RI_USAGE(8, 0xB5), /* Next Track */
HID_RI_USAGE(8, 0xE2), /* Mute */
HID_RI_USAGE(8, 0xE9), /* Volume Up */
HID_RI_USAGE(8, 0xEA), /* Volume Down */
HID_RI_USAGE(8, 0xE9), /* Volume Up */
HID_RI_REPORT_SIZE(8, 0x01),
HID_RI_REPORT_COUNT(8, 0x08),
HID_RI_LOGICAL_MINIMUM(8, 0),
......
......@@ -132,14 +132,14 @@
// MediaController USB Report
typedef struct
{
unsigned BrightnessUp : 1;
unsigned BrightnessDown : 1;
unsigned NextTrack : 1;
unsigned BrightnessUp : 1;
unsigned PreviousTrack : 1;
unsigned PlayPause : 1;
unsigned NextTrack : 1;
unsigned Mute : 1;
unsigned VolumeUp : 1;
unsigned VolumeDown : 1;
unsigned VolumeUp : 1;
} ATTR_PACKED USB_MediaReport_Data_t;
void setup_hardware(void);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment