diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/report.h | 9 | ||||
-rw-r--r-- | common/usb_keycodes.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/common/report.h b/common/report.h index 45f5c0b88..a73e0aba1 100644 --- a/common/report.h +++ b/common/report.h | |||
@@ -78,6 +78,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
78 | # define REPORT_KEYS 6 | 78 | # define REPORT_KEYS 6 |
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | |||
82 | #ifdef __cplusplus | ||
83 | extern "C" { | ||
84 | #endif | ||
85 | |||
81 | typedef struct { | 86 | typedef struct { |
82 | uint8_t mods; | 87 | uint8_t mods; |
83 | uint8_t rserved; | 88 | uint8_t rserved; |
@@ -92,4 +97,8 @@ typedef struct { | |||
92 | int8_t h; | 97 | int8_t h; |
93 | } __attribute__ ((packed)) report_mouse_t; | 98 | } __attribute__ ((packed)) report_mouse_t; |
94 | 99 | ||
100 | #ifdef __cplusplus | ||
101 | } | ||
102 | #endif | ||
103 | |||
95 | #endif | 104 | #endif |
diff --git a/common/usb_keycodes.h b/common/usb_keycodes.h index 9b6cce153..04b398fa2 100644 --- a/common/usb_keycodes.h +++ b/common/usb_keycodes.h | |||
@@ -24,6 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
24 | 24 | ||
25 | 25 | ||
26 | #define IS_ERROR(code) (KB_ROLL_OVER <= (code) && (code) <= KB_UNDEFINED) | 26 | #define IS_ERROR(code) (KB_ROLL_OVER <= (code) && (code) <= KB_UNDEFINED) |
27 | #define IS_ANY(code) (KB_A <= (code)) | ||
27 | #define IS_KEY(code) (KB_A <= (code) && (code) <= KB_EXSEL) | 28 | #define IS_KEY(code) (KB_A <= (code) && (code) <= KB_EXSEL) |
28 | #define IS_MOD(code) (KB_LCTRL <= (code) && (code) <= KB_RGUI) | 29 | #define IS_MOD(code) (KB_LCTRL <= (code) && (code) <= KB_RGUI) |
29 | #define IS_FN(code) (KB_FN0 <= (code) && (code) <= KB_FN7) | 30 | #define IS_FN(code) (KB_FN0 <= (code) && (code) <= KB_FN7) |