Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RealET committed Jan 11, 2025
1 parent af7b48b commit 153a421
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
12 changes: 6 additions & 6 deletions boards/shields/imprint/imprint.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,17 @@ RC(2,6) RC(2,5) RC(2,4) RC(2,3) RC(2,2) RC(2,1) RC(9,1) RC(9,2)
status = "disabled";
device = <&trackball_peripheral_split>;
input-processors =
<&zip_xy_transform INPUT_TRANSFORM_XY_SWAP>,
<&zip_temp_layer 3 500>;
<&zip_xy_transform INPUT_TRANSFORM_XY_SWAP>,//this gets it to the default installation orientation
<&zip_temp_layer 3 500>;//activate layer 3 within 500ms of the trackball moving
};
//left hand trackball
trackball_central_listener: trackball_central_listener {
compatible = "zmk,input-listener";
status = "disabled";
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>;
<&zip_xy_transform INPUT_TRANSFORM_XY_SWAP>,//this gets it to the default installation orientation
<&zip_xy_scaler 1 3>,//multiply sensitivity by 1, divide by 3 (make it slower for scrolling)
<&zip_xy_to_scroll_mapper>,//make this trackball output scrolling events by default instead of cursor movement
<&zip_scroll_transform INPUT_TRANSFORM_Y_INVERT>;//invert vertical scrolling so that the view moves in the same direction as the top of the trackball.
};
};
25 changes: 14 additions & 11 deletions boards/shields/imprint/imprint.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,17 @@
};
};

//right hand trackball
&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_transform INPUT_TRANSFORM_XY_SWAP>;
};
// //right hand trackball overrides
// &trackball_peripheral_listener {
// input-processors =
// <&zip_xy_transform INPUT_TRANSFORM_XY_SWAP>,//this gets it to the default installation orientation
// <&zip_temp_layer 3 500>;//activate layer 3 within 500ms of the trackball moving
// };
// //left hand trackball overrides
// &trackball_central_listener {
// input-processors =
// <&zip_xy_transform INPUT_TRANSFORM_XY_SWAP>,//this gets it to the default installation orientation
// <&zip_xy_scaler 1 3>,//multiply sensitivity by 1, divide by 3 (make it slower for scrolling)
// <&zip_xy_to_scroll_mapper>,//make this trackball output scrolling events by default instead of cursor movement
// <&zip_scroll_transform INPUT_TRANSFORM_Y_INVERT>;//invert vertical scrolling so that the view moves in the same direction as the top of the trackball.
// };

0 comments on commit 153a421

Please sign in to comment.