From f8ad181ae2d199896fa04dbf355d0df5d6415d41 Mon Sep 17 00:00:00 2001 From: realet Date: Sat, 11 Jan 2025 08:53:20 -0500 Subject: [PATCH] move all input processors to keymap, and try to move them outside the /{} block --- boards/shields/imprint/imprint.dtsi | 2 -- boards/shields/imprint/imprint.keymap | 18 ++++++++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/boards/shields/imprint/imprint.dtsi b/boards/shields/imprint/imprint.dtsi index a18ef03..ce43dd5 100644 --- a/boards/shields/imprint/imprint.dtsi +++ b/boards/shields/imprint/imprint.dtsi @@ -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>; }; }; diff --git a/boards/shields/imprint/imprint.keymap b/boards/shields/imprint/imprint.keymap index 0ab5f0e..3f45cc1 100644 --- a/boards/shields/imprint/imprint.keymap +++ b/boards/shields/imprint/imprint.keymap @@ -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>; };