diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-06-20 17:54:52 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-06-20 17:54:52 -0400 |
commit | 7e659851c80bf2819554d93ad9971f56aa5b225b (patch) | |
tree | b0d2ee4784741cbcd3e109b71230502d87691e1b /app/src/behaviors/behavior_keymap.c | |
parent | d65629b9a0b79b6e294419fe9a4118fb09491c91 (diff) |
Refactor matrix transform, positions pervasively
* Do mapping to positions right in kscan handler, and then
surface positions throughout the API.
Diffstat (limited to 'app/src/behaviors/behavior_keymap.c')
-rw-r--r-- | app/src/behaviors/behavior_keymap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/behaviors/behavior_keymap.c b/app/src/behaviors/behavior_keymap.c index 48f8547..9369b40 100644 --- a/app/src/behaviors/behavior_keymap.c +++ b/app/src/behaviors/behavior_keymap.c @@ -23,14 +23,14 @@ static int behavior_keymap_init(struct device *dev) return 0; }; -static int on_position_pressed(struct device *dev, u32_t row, u32_t column) +static int on_position_pressed(struct device *dev, u32_t position, u32_t _) { - return zmk_keymap_position_state_changed(row, column, true); + return zmk_keymap_position_state_changed(position, true); } -static int on_position_released(struct device *dev, u32_t row, u32_t column) +static int on_position_released(struct device *dev, u32_t position, u32_t _) { - return zmk_keymap_position_state_changed(row, column, false); + return zmk_keymap_position_state_changed(position, false); } static const struct behavior_driver_api behavior_keymap_driver_api = { |