summaryrefslogtreecommitdiff
path: root/include/zmk/keys.h
blob: 6966bbac05a1862be25eb99deee674f0f5e55bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <zephyr.h>
#include <dt-bindings/zmk/keys.h>

typedef u32_t zmk_key;
typedef u8_t zmk_action;
typedef u8_t zmk_mod;
typedef u8_t zmk_mod_flags;

struct zmk_key_event
{
    u32_t column;
    u32_t row;
    zmk_key key;
    bool pressed;
};