9a991bf019
* Add initial event manager implementation, roughly mimicking Nordic's API. * Add `position_state_changed` and `keycode_state_changed` events. * Hook up HID and keymap to new events instead of using behaviour global event crazy.
12 lines
No EOL
216 B
C
12 lines
No EOL
216 B
C
#pragma once
|
|
|
|
#include <zephyr.h>
|
|
#include <zmk/event-manager.h>
|
|
|
|
struct position_state_changed {
|
|
struct zmk_event_header header;
|
|
u32_t position;
|
|
bool state;
|
|
};
|
|
|
|
ZMK_EVENT_DECLARE(position_state_changed); |