summaryrefslogtreecommitdiff
path: root/app/include/zmk/hid.h
diff options
context:
space:
mode:
authorNick <nick.win999@gmail.com>2020-09-19 19:15:05 -0500
committerNick <nick.win999@gmail.com>2020-09-19 19:15:05 -0500
commitda0fb965f6b6a67154e20a3fddda48f5bc392d77 (patch)
treef7f9aa9a45b39bb4d943eb7d2ba6e71d516ab40c /app/include/zmk/hid.h
parent844f2c76749cbc5ff611d8e69819af82b698089a (diff)
parentc0806d27f1d048db335ecc854eab61b59e23ea7a (diff)
Merge remote-tracking branch 'upstream/main' into bluetooth/battery-reporting
Diffstat (limited to 'app/include/zmk/hid.h')
-rw-r--r--app/include/zmk/hid.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/app/include/zmk/hid.h b/app/include/zmk/hid.h
index 138606a..744de98 100644
--- a/app/include/zmk/hid.h
+++ b/app/include/zmk/hid.h
@@ -1,3 +1,9 @@
+/*
+ * Copyright (c) 2020 The ZMK Contributors
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
#pragma once
#include <usb/usb_device.h>
@@ -134,25 +140,21 @@ static const u8_t zmk_hid_report_desc[] = {
// u8_t keys[6];
// } __packed;
-struct zmk_hid_keypad_report_body
-{
+struct zmk_hid_keypad_report_body {
zmk_mod_flags modifiers;
u8_t keys[13];
} __packed;
-struct zmk_hid_keypad_report
-{
+struct zmk_hid_keypad_report {
u8_t report_id;
struct zmk_hid_keypad_report_body body;
} __packed;
-struct zmk_hid_consumer_report_body
-{
+struct zmk_hid_consumer_report_body {
u8_t keys[6];
} __packed;
-struct zmk_hid_consumer_report
-{
+struct zmk_hid_consumer_report {
u8_t report_id;
struct zmk_hid_consumer_report_body body;
} __packed;