Skip to content

Commit

Permalink
try to get mouse scrolling to work
Browse files Browse the repository at this point in the history
  • Loading branch information
ctranstrum committed Jan 16, 2025
1 parent a8b70bb commit 2786ffa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Unzip the firmware to find four firmware files:

- chuck-unibody: for using the keyboard without a dongle
- chuck-peripheral: for using the keyboad with a dongle
- chuck-dongle: to install the firmware onto the Prospector ZMK dongle
- chuck-dongle: to install the firmware onto the [Prospector ZMK dongle][prospector]
- xiao-reset: used to clear all bluetooth connections and other saved settings

Plug the One Up Chuck keyboard into your computer's USB port,
Expand Down Expand Up @@ -118,14 +118,15 @@ CONFIG_ZMK_POINTING_SMOOTH_SCROLLING=y
# Enable ZMK Studio
CONFIG_ZMK_STUDIO=y
```

See the pre-compiled firmware [config file][config] for additional settings.
See the pre-compiled firmware [config file][config]
for additional settings you may want to consider.

To customize the keymap for your One Up Chuck board, you can copy the
[default keymap][keymap] from this repo to the `config` directory of
your zmk config repo and edit it from there.
To customize the keymap for your One Up Chuck board,
you can copy the [default keymap][keymap] from this repo
to the `config` directory of your zmk config repo
and edit it from there.

Default Keymap:

Expand All @@ -135,5 +136,6 @@ Default Keymap:
[chuck]: https://github.com/ctranstrum/chuck
[config]: config/one-up-chuck.conf
[keymap]: https://github.com/ctranstrum/chuck/tree/zmk/boards/shields/chuck/one_up_chuck.keymap
[prospector]: https://github.com/carrefinho/prospector
[studio]: https://zmk.studio
[zmk]: https://zmk.dev/docs/user-setup#github-repo
18 changes: 18 additions & 0 deletions boards/shields/chuck/chuck.dtsi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <dt-bindings/zmk/matrix_transform.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include "chuck-layouts.dtsi"

/ {
Expand Down Expand Up @@ -35,6 +36,23 @@
sensors = <&encoder>;
triggers-per-rotation = <24>;
};

input_processors {
zip_scroll_scalar: zip_scroll_scalar {
compatible = "zmk,input-processor-scalar";
#input-processor-cells = <2>;
type = <INPUT_EV_REL>;
codes = <INPUT_REL_WHEEL INPUT_REL_HWHEEL>;
track-remainders;
};
};
};

&msc_input_listener {
turbo {
layers = <0>;
input-processors = <&zip_scroll_scalar 3 1>;
};
};

// vim: expandtab softtabstop=4 shiftwidth=4

0 comments on commit 2786ffa

Please sign in to comment.