Skip to content

Commit

Permalink
gamepad
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Hazel committed Jul 11, 2023
1 parent ba219e8 commit 33988ae
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions config/boards/shields/chaz/chaz.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>

#define ALPHA 0

#define GAMES 0
#define NUMBERS 1
#define CONFIG 2
#define ALPHA 3

&mt {
flavor = "tap-preferred";
Expand All @@ -25,13 +27,37 @@
keymap {
compatible = "zmk,keymap";

ALPHA_layer {
GAMES_layer {
bindings = <
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp N1 &kp N2 &kp N3 &kp BSPC
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp N4 &kp N5 &kp N6 &none
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp N4 &kp N5 &kp N6 &tog 2
&kp LSHIFT &kp Z &kp X &kp C &kp V &kp B &kp N7 &kp N8 &kp RET
&kp LCTRL &kp TILDE &none &kp SPACE &kp SPACE &kp N9 &kp N0 &kp &none
&kp LCTRL &kp GRAVE &mo 1 &kp SPACE &kp SPACE &kp N9 &kp N0 &kp &tog 3
>;
};
NUMBERS_layer {
bindings = <
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
&none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none
>;
};
CONFIG_layer {
bindings = <
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &tog 2
&none &none &none &none &none &none &none &none &none
&bt BT_CLR &out OUT_BLE &out OUT_USB &none &none &none &none &none
>;
};
ALPHA_layer {
bindings = <
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SQT
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT
&kp ESC &kp LCTRL &mo 1 &kp LSHIFT &kp SPACE &kp BSPC &kp RET &kp &tog 3
>;
};
};
};

0 comments on commit 33988ae

Please sign in to comment.