mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
refactor(core): Extra position state change data struct.
* Separate header and data struct for the event. * Remove duplicate struct in split code.
This commit is contained in:
@@ -9,11 +9,15 @@
|
||||
#include <zephyr.h>
|
||||
#include <zmk/event_manager.h>
|
||||
|
||||
struct position_state_changed {
|
||||
struct zmk_event_header header;
|
||||
struct zmk_position_state_changed_data {
|
||||
uint32_t position;
|
||||
bool state;
|
||||
int64_t timestamp;
|
||||
};
|
||||
|
||||
struct position_state_changed {
|
||||
struct zmk_event_header header;
|
||||
struct zmk_position_state_changed_data data;
|
||||
};
|
||||
|
||||
ZMK_EVENT_DECLARE(position_state_changed);
|
||||
Reference in New Issue
Block a user