summaryrefslogtreecommitdiff
path: root/app/dts/behaviors/sensor_rotate_key_press.dtsi
blob: b094be5824e21e884157cc37e8effe2dba302877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <dt-bindings/zmk/keys.h>

/ {
	behaviors {
		inc_dec_kp: behavior_sensor_rotate_key_press {
			compatible = "zmk,behavior-sensor-rotate-key-press";
			label = "ENC_KEY_PRESS";
			usage_page = <USAGE_KEYPAD>;
			#sensor-binding-cells = <2>;
		};

		inc_dec_cp: behavior_sensor_rotate_consumer_press {
			compatible = "zmk,behavior-sensor-rotate-key-press";
			label = "ENC_CONSUMER_PRESS";
			usage_page = <USAGE_CONSUMER>;
			#sensor-binding-cells = <2>;
		};
	};
};