Expanded handler implementation, more key defines.

This commit is contained in:
Pete Johanson
2020-05-10 17:13:24 -04:00
parent 70bf1230fa
commit 60feb8fb09
8 changed files with 189 additions and 47 deletions

View File

@@ -1,16 +1,19 @@
#ifndef ZMK_KEYMAP_H
#define ZMK_KEYMAP_H
#pragma once
#include <devicetree.h>
#include <usb/usb_device.h>
#include <usb/class/usb_hid.h>
#include "dt-bindings/zmk/keys.h"
#include "zmk.h"
#define ZMK_KEYMAP_NODE DT_CHOSEN(zmk_keymap)
#define ZMK_KEYMAP_LAYERS_LEN DT_PROP_LEN(ZMK_KEYMAP_NODE,layers)
#define ZMK_KEYMAP_LAYERS_LEN DT_PROP_LEN(ZMK_KEYMAP_NODE, layers)
typedef u64_t zmk_key;
enum hid_kbd_code zmk_keymap_keycode_from_position(u32_t row, u32_t column);
bool zmk_keymap_layer_activate(u8_t layer);
bool zmk_keymap_layer_deactivate(u8_t layer);
#endif
zmk_key
zmk_keymap_keycode_from_position(u32_t row, u32_t column);