Skip to content

Commit

Permalink
move all input processors to keymap, and try to move them outside the…
Browse files Browse the repository at this point in the history
… /{} block
  • Loading branch information
RealET committed Jan 11, 2025
1 parent 1a44a7d commit f8ad181
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 0 additions & 2 deletions boards/shields/imprint/imprint.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,10 @@ RC(2,6) RC(2,5) RC(2,4) RC(2,3) RC(2,2) RC(2,1) RC(9,1) RC(9,2)
compatible = "zmk,input-listener";
status = "disabled";
device = <&trackball_peripheral_split>;
input-processors = <&zip_xy_transform INPUT_TRANSFORM_XY_SWAP>;
};
//left hand trackball
trackball_central_listener: trackball_central_listener {
compatible = "zmk,input-listener";
status = "disabled";
input-processors = <&zip_xy_transform INPUT_TRANSFORM_XY_SWAP>;
};
};
18 changes: 12 additions & 6 deletions boards/shields/imprint/imprint.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,19 @@
>;
};
};
};

//right hand trackball
&trackball_peripheral_listener {
input-processors = <&zip_temp_layer 3 500>;
};
&trackball_peripheral_listener {
input-processors =
<&zip_xy_transform INPUT_TRANSFORM_XY_SWAP>,
<&zip_temp_layer 3 500>;
};
//left hand trackball
&trackball_central_listener {
input-processors = <&zip_xy_scaler 1 3>, <&zip_xy_to_scroll_mapper>, <&zip_scroll_transform INPUT_TRANSFORM_Y_INVERT>;
};
&trackball_central_listener {
input-processors =
<&zip_xy_transform INPUT_TRANSFORM_XY_SWAP>,
<&zip_xy_scaler 1 3>,
<&zip_xy_to_scroll_mapper>,
<&zip_scroll_transform INPUT_TRANSFORM_Y_INVERT>;
};

0 comments on commit f8ad181

Please sign in to comment.