Initial event manager work, and two first events.
* 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.
This commit is contained in:
parent
22238d24de
commit
9a991bf019
19 changed files with 249 additions and 112 deletions
|
|
@ -18,11 +18,11 @@ include(cmake/zmk_config.cmake)
|
|||
find_package(Zephyr REQUIRED HINTS ../zephyr)
|
||||
project(zmk)
|
||||
|
||||
|
||||
if(EXISTS ${KEYMAP_DIR}/keymap.c)
|
||||
target_sources(app PRIVATE ${KEYMAP_DIR}/keymap.c)
|
||||
target_sources(app PRIVATE ${KEYMAP_DIR}/keymap.c)
|
||||
endif()
|
||||
|
||||
zephyr_linker_sources(RODATA include/linker/zmk-events.ld)
|
||||
|
||||
# Add your source file to the "app" target. This must come after
|
||||
# find_package(Zephyr) which defines the target.
|
||||
|
|
@ -32,7 +32,9 @@ target_sources(app PRIVATE src/matrix_transform.c)
|
|||
target_sources(app PRIVATE src/events.c)
|
||||
target_sources(app PRIVATE src/keymap.c)
|
||||
target_sources(app PRIVATE src/hid.c)
|
||||
target_sources(app PRIVATE src/behaviors/behavior_keymap.c)
|
||||
target_sources(app PRIVATE src/event_manager.c)
|
||||
target_sources(app PRIVATE src/events/keycode_state_changed.c)
|
||||
target_sources(app PRIVATE src/events/position_state_changed.c)
|
||||
target_sources(app PRIVATE src/behaviors/behavior_hid.c)
|
||||
target_sources(app PRIVATE src/behaviors/behavior_key_press.c)
|
||||
target_sources(app PRIVATE src/behaviors/behavior_reset.c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue