Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform
Commits
c0af7b37
Commit
c0af7b37
authored
2 years ago
by
Sigrid Haflínudóttir
Browse files
Options
Downloads
Patches
Plain Diff
keyboard-fw: fix the ordering of media keys
Signed-off-by:
Sigrid Solveig Haflínudóttir
<
sigrid@ftrv.se
>
parent
d4f2271a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
reform2-keyboard-fw/descriptors.c
+4
-4
4 additions, 4 deletions
reform2-keyboard-fw/descriptors.c
reform2-keyboard-fw/keyboard.h
+3
-3
3 additions, 3 deletions
reform2-keyboard-fw/keyboard.h
with
7 additions
and
7 deletions
reform2-keyboard-fw/descriptors.c
+
4
−
4
View file @
c0af7b37
...
...
@@ -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
),
...
...
This diff is collapsed.
Click to expand it.
reform2-keyboard-fw/keyboard.h
+
3
−
3
View file @
c0af7b37
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment