2020-09-10 13:57:44 +10:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
2020-05-13 04:15:33 +10:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <zephyr.h>
|
2020-05-17 13:26:26 +10:00
|
|
|
#include <dt-bindings/zmk/keys.h>
|
2020-05-13 04:15:33 +10:00
|
|
|
|
2020-05-23 12:47:03 +10:00
|
|
|
typedef u32_t zmk_key;
|
|
|
|
typedef u8_t zmk_action;
|
2020-05-19 13:34:36 +10:00
|
|
|
typedef u8_t zmk_mod;
|
2020-05-23 12:47:03 +10:00
|
|
|
typedef u8_t zmk_mod_flags;
|
2020-05-13 04:15:33 +10:00
|
|
|
|
|
|
|
struct zmk_key_event
|
|
|
|
{
|
2020-05-23 12:47:03 +10:00
|
|
|
u32_t column;
|
|
|
|
u32_t row;
|
2020-05-13 04:15:33 +10:00
|
|
|
zmk_key key;
|
|
|
|
bool pressed;
|
|
|
|
};
|