Refactor matrix transform, positions pervasively
* Do mapping to positions right in kscan handler, and then surface positions throughout the API.
This commit is contained in:
parent
d65629b9a0
commit
7e659851c8
10 changed files with 95 additions and 51 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
int zmk_events_position_pressed(u32_t row, u32_t column);
|
||||
int zmk_events_position_released(u32_t row, u32_t column);
|
||||
int zmk_events_position_pressed(u32_t position);
|
||||
int zmk_events_position_released(u32_t position);
|
||||
int zmk_events_keycode_pressed(u32_t keycode);
|
||||
int zmk_events_keycode_released(u32_t keycode);
|
||||
int zmk_events_mod_pressed(u32_t modifier);
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@
|
|||
bool zmk_keymap_layer_activate(u8_t layer);
|
||||
bool zmk_keymap_layer_deactivate(u8_t layer);
|
||||
|
||||
int zmk_keymap_position_state_changed(u32_t row, u32_t column, bool pressed);
|
||||
int zmk_keymap_position_state_changed(u32_t position, bool pressed);
|
||||
|
|
|
|||
3
app/include/zmk/matrix_transform.h
Normal file
3
app/include/zmk/matrix_transform.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
u32_t zmk_matrix_transform_row_column_to_position(u32_t row, u32_t column);
|
||||
Loading…
Add table
Add a link
Reference in a new issue