* Add new sensor behaviors that either take full bindings add definition, or accept parameters when bound in the keymap. * Remove existing hard-coded key press sensor behavior and instead leverage new generic sensor behaviors to achieve the same functionality. Co-authored-by: nick@conway.dev
24 lines
No EOL
575 B
Text
24 lines
No EOL
575 B
Text
# Copyright (c) 2023 The ZMK Contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
config ZMK_BEHAVIOR_KEY_TOGGLE
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_KEY_TOGGLE_ENABLED
|
|
|
|
|
|
config ZMK_BEHAVIOR_SENSOR_ROTATE_COMMON
|
|
bool
|
|
default n
|
|
|
|
config ZMK_BEHAVIOR_SENSOR_ROTATE
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_SENSOR_ROTATE_ENABLED
|
|
select ZMK_BEHAVIOR_SENSOR_ROTATE_COMMON
|
|
|
|
config ZMK_BEHAVIOR_SENSOR_ROTATE_VAR
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_SENSOR_ROTATE_VAR_ENABLED
|
|
select ZMK_BEHAVIOR_SENSOR_ROTATE_COMMON |