22 lines
365 B
22 lines
365 B
/* |
|
* Copyright (c) 2020 The ZMK Contributors |
|
* |
|
* SPDX-License-Identifier: MIT |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <zephyr.h> |
|
#include <dt-bindings/zmk/keys.h> |
|
|
|
typedef uint32_t zmk_key; |
|
typedef uint8_t zmk_action; |
|
typedef uint8_t zmk_mod; |
|
typedef uint8_t zmk_mod_flags; |
|
|
|
struct zmk_key_event { |
|
uint32_t column; |
|
uint32_t row; |
|
zmk_key key; |
|
bool pressed; |
|
}; |