refactor(hid): Mod defines in dedicated header.

This commit is contained in:
Pete Johanson
2020-11-03 00:21:20 -05:00
parent 55b5936d00
commit 32e7159373
6 changed files with 32 additions and 26 deletions

View File

@@ -8,7 +8,7 @@
LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
#include <zmk/hid.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/modifiers.h>
static struct zmk_hid_keypad_report kp_report = {
.report_id = 1, .body = {.modifiers = 0, ._reserved = 0, .keys = {0}}};

View File

@@ -9,7 +9,6 @@
#include <usb/usb_device.h>
#include <usb/class/usb_hid.h>
#include <dt-bindings/zmk/keys.h>
#include <zmk/hid.h>
#include <zmk/keymap.h>