File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,4 +26,6 @@ CONFIG_PMW3610_RUN_DOWNSHIFT_TIME_MS=2000
2626CONFIG_PMW3610_REST1_DOWNSHIFT_TIME_MS=3000
2727CONFIG_PMW3610_REST2_DOWNSHIFT_TIME_MS=30000
2828
29+ CONFIG_SENSOR_ROTATION=y
30+
2931CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
Original file line number Diff line number Diff line change 77#include <behaviors.dtsi>
88#include <dt-bindings/zmk/bt.h>
99#include <dt-bindings/zmk/pointing.h>
10+ #include "input/processors/sensor_rotation.dtsi"
1011
1112/ {
1213 default_transform: keymap_transform_0 {
7879 display-name = "Sniper";
7980 };
8081 };
82+
83+ input_processors {
84+ sensor_rotation: sensor_rotation {
85+ compatible = "zmk,input-processor-sensor-rotation";
86+ status = "okay";
87+ #input-processor-cells = <0>;
88+ rotation-angle = <5>;
89+ };
90+ };
8191};
8292
8393&trackball { cpi = <1000>; };
8494
8595&trackball_listener {
86- input-processors = <&zip_xy_scaler 9 20 >;
96+ input-processors = <&zip_y_scaler 1 2>, <&zip_x_scaler 1 1>, <&sensor_rotation >;
8797
8898 scroller {
8999 layers = <1>;
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ manifest:
66 url-base : https://github.com/ergohaven
77 - name : kot149
88 url-base : https://github.com/kot149
9+ - name : hsgw
10+ url-base : https://github.com/hsgw
911 projects :
1012 - name : zmk
1113 remote : zmkfirmware
@@ -23,5 +25,8 @@ manifest:
2325 - name : zmk-scroll-snap
2426 remote : kot149
2527 revision : v1
28+ - name : zmk-feature-sensor_rotation
29+ remote : hsgw
30+ revision : e1a0186220ade99220d04dadf9735b758cfdf086
2631 self :
2732 path : config
You can’t perform that action at this time.
0 commit comments