refactor(core): Move to stack allocated events.
* Move to local/stack allocated event API that doesn't require dynamic allocation/freeing. * Disable heap, we no longer use alloc/free unless using LVGL. * Tons of refactors all over to account for the new event approach.
This commit is contained in:
parent
50e473276f
commit
33209dee1d
24 changed files with 172 additions and 147 deletions
|
|
@ -43,7 +43,7 @@ static int on_key_repeat_binding_pressed(struct zmk_behavior_binding *binding,
|
|||
sizeof(struct zmk_keycode_state_changed));
|
||||
data->current_keycode_pressed.timestamp = k_uptime_get();
|
||||
|
||||
ZMK_EVENT_RAISE(new_zmk_keycode_state_changed(data->current_keycode_pressed));
|
||||
raise_zmk_keycode_state_changed(data->current_keycode_pressed);
|
||||
|
||||
return ZMK_BEHAVIOR_OPAQUE;
|
||||
}
|
||||
|
|
@ -60,7 +60,7 @@ static int on_key_repeat_binding_released(struct zmk_behavior_binding *binding,
|
|||
data->current_keycode_pressed.timestamp = k_uptime_get();
|
||||
data->current_keycode_pressed.state = false;
|
||||
|
||||
ZMK_EVENT_RAISE(new_zmk_keycode_state_changed(data->current_keycode_pressed));
|
||||
raise_zmk_keycode_state_changed(data->current_keycode_pressed);
|
||||
return ZMK_BEHAVIOR_OPAQUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue