Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tokyo2006 committed Sep 5, 2024
1 parent 52c4774 commit 856714c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
#include <dt-bindings/zmk/mouse.h>
#include <dt-bindings/zmk/rgb.h>

&msc {
time-to-max-speed-ms = <400>
acceleration-exponent = <1>;
};

&mmv {
time-to-max-speed-ms = <400>
acceleration-exponent = <1>;
};

/ {
macros {
flash_macro: flash_macro {
Expand Down Expand Up @@ -55,10 +65,10 @@
};

scroll_encoder: scroll_encoder {
compatible = "zmk,behavior-sensor-rotate";
compatible = "zmk,behavior-sensor-rotate-var";
#sensor-binding-cells = <2>;
bindings = <&msc>, <&msc>;
label = "SCROLL_ENCODER";
#sensor-binding-cells = <1>;
bindings = <&msc SCRL_UP >, <&msc SCRL_DOWN >;
};
};

Expand Down Expand Up @@ -198,7 +208,7 @@
>;

label = "Mouse";
sensor-bindings = <&scroll_encoder>;
sensor-bindings = <&scroll_encoder SCRL_UP SCRL_DOWN>;
};
};

Expand Down

0 comments on commit 856714c

Please sign in to comment.