diff options
Diffstat (limited to 'app/include/zmk/events/position_state_changed.h')
-rw-r--r-- | app/include/zmk/events/position_state_changed.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/include/zmk/events/position_state_changed.h b/app/include/zmk/events/position_state_changed.h new file mode 100644 index 0000000..0f1ac1b --- /dev/null +++ b/app/include/zmk/events/position_state_changed.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2020 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + +#pragma once + +#include <zephyr.h> +#include <zmk/event_manager.h> + +struct position_state_changed { + struct zmk_event_header header; + uint32_t position; + bool state; + int64_t timestamp; +}; + +ZMK_EVENT_DECLARE(position_state_changed);
\ No newline at end of file |