Skip to content

Commit 1aaae45

Browse files
committed
added support for f13 to f24
1 parent 3e363f7 commit 1aaae45

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

src/Keyboard.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ static const uint8_t _hidReportDescriptor[] PROGMEM = {
5151
0x95, 0x06, // REPORT_COUNT (6)
5252
0x75, 0x08, // REPORT_SIZE (8)
5353
0x15, 0x00, // LOGICAL_MINIMUM (0)
54-
0x25, 0x65, // LOGICAL_MAXIMUM (101)
54+
0x25, 0x73, // LOGICAL_MAXIMUM (115)
5555
0x05, 0x07, // USAGE_PAGE (Keyboard)
5656

5757
0x19, 0x00, // USAGE_MINIMUM (Reserved (no event indicated))
58-
0x29, 0x65, // USAGE_MAXIMUM (Keyboard Application)
58+
0x29, 0x73, // USAGE_MAXIMUM (Keyboard Application)
5959
0x81, 0x00, // INPUT (Data,Ary,Abs)
6060
0xc0, // END_COLLECTION
6161
};
@@ -320,3 +320,4 @@ size_t Keyboard_::write(uint8_t c)
320320
Keyboard_ Keyboard;
321321

322322
#endif
323+

src/Keyboard.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@
7070
#define KEY_F10 0xCB
7171
#define KEY_F11 0xCC
7272
#define KEY_F12 0xCD
73+
#define KEY_F13 0xF0
74+
#define KEY_F14 0xF1
75+
#define KEY_F15 0xF2
76+
#define KEY_F16 0xF3
77+
#define KEY_F17 0xF4
78+
#define KEY_F18 0xF5
79+
#define KEY_F19 0xF6
80+
#define KEY_F20 0xF7
81+
#define KEY_F21 0xF8
82+
#define KEY_F22 0xF9
83+
#define KEY_F23 0xFA
84+
#define KEY_F24 0xFB
85+
7386

7487
// Low level key report: up to 6 keys and shift, ctrl etc at once
7588
typedef struct
@@ -97,3 +110,4 @@ extern Keyboard_ Keyboard;
97110

98111
#endif
99112
#endif
113+

0 commit comments

Comments
 (0)