Skip to content

Commit

Permalink
2.62: add sensor bindings for msc and mmv
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Milliken committed Jan 15, 2024
1 parent ebb69ef commit 23e493c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion config/shared.dtsi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define VER_PATCH N1
#define VER_PATCH N2
#define VER_MINOR N6
#define VER_MAJOR N2

Expand Down Expand Up @@ -692,6 +692,16 @@
tapping-term-ms = <250>;
bindings = <&kp SEMICOLON>, <&kp SINGLE_QUOTE>;
};
rot_mmv: sensor_rotate_mmv {
compatible = "zmk,behavior-sensor-rotate-var";
#sensor-binding-cells = <2>;
bindings = <&mmv>, <&mmv>;
};
rot_msc: sensor_rotate_msc {
compatible = "zmk,behavior-sensor-rotate-var";
#sensor-binding-cells = <2>;
bindings = <&msc>, <&msc>;
};

};
// }}}
Expand Down
6 changes: 3 additions & 3 deletions config/splitkb_aurora_corne.keymap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// HEADERS {{{
// HEADERS {{{
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/outputs.h>
Expand Down Expand Up @@ -138,7 +138,7 @@
&none &none &kp HOME &kp ESC &kp END &none &kp PAGE_UP &dis_prev_history &dis_next_history &none &dis_next_mention &act N
&none &none &dis_tog &dis_tog &trans &none
>;
sensor-bindings = <&inc_dec_kp SCRL_UP SCRL_DOWN &inc_dec_kp SCRL_LEFT SCRL_RIGHT>;
sensor-bindings = <&rot_msc SCRL_UP SCRL_DOWN &rot_msc SCRL_LEFT SCRL_RIGHT>;
};

/* 10 Layer */
Expand All @@ -150,7 +150,7 @@
&none &none &warpd_l &warpd_t &warpd_r &none &mkp LCLK &mkp RCLK &none &none &none &warpd_r
&trans &trans &point_tog &point_tog &trans &trans
>;
sensor-bindings = <&inc_dec_kp SCRL_UP SCRL_DOWN &inc_dec_kp SCRL_LEFT SCRL_RIGHT>;
sensor-bindings = <&rot_mmv MOVE_LEFT MOVE_RIGHT &rot_mmv MOVE_UP MOVE_DOWN>;
};

/* 11 Layer */
Expand Down

0 comments on commit 23e493c

Please sign in to comment.