2020-07-01 06:13:03 +10:00
|
|
|
/*
|
2020-09-10 13:57:44 +10:00
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
2020-07-01 06:13:03 +10:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
2020-06-30 14:31:09 +10:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <zephyr.h>
|
2020-12-23 02:56:00 +11:00
|
|
|
#include <zmk/event_manager.h>
|
2020-06-30 14:31:09 +10:00
|
|
|
|
|
|
|
struct position_state_changed {
|
|
|
|
struct zmk_event_header header;
|
2020-12-03 03:41:57 +11:00
|
|
|
uint32_t position;
|
2020-06-30 14:31:09 +10:00
|
|
|
bool state;
|
2020-12-03 03:41:57 +11:00
|
|
|
int64_t timestamp;
|
2020-06-30 14:31:09 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
ZMK_EVENT_DECLARE(position_state_changed);
|