diff options
author | Danny Nguyen <danny@keeb.io> | 2017-10-31 17:03:14 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-10-31 20:59:26 -0400 |
commit | c9a0436422a8884fd8b5bd706ffc70020c3437be (patch) | |
tree | 2b3ec87b60f8a71062da8ea8b80b13d72b5b8c7a /keyboards/6ball/keymaps/default | |
parent | fca03e15b9f111e614738d9dcce09e03c49e9409 (diff) |
Add 6-ball macropad
Diffstat (limited to 'keyboards/6ball/keymaps/default')
-rw-r--r-- | keyboards/6ball/keymaps/default/keymap.c | 28 | ||||
-rw-r--r-- | keyboards/6ball/keymaps/default/rules.mk | 3 |
2 files changed, 31 insertions, 0 deletions
diff --git a/keyboards/6ball/keymaps/default/keymap.c b/keyboards/6ball/keymaps/default/keymap.c new file mode 100644 index 0000000000..f93587ffc3 --- /dev/null +++ b/keyboards/6ball/keymaps/default/keymap.c @@ -0,0 +1,28 @@ +#include "6ball.h" + +#define _MAIN 0 +#define _FN 1 + +#define KC_ KC_TRNS + +#define KC_CAPW LGUI(LSFT(KC_3)) // Capture whole screen +#define KC_CPYW LGUI(LSFT(LCTL(KC_3))) // Copy whole screen +#define KC_CAPP LGUI(LSFT(KC_4)) // Capture portion of screen +#define KC_CPYP LGUI(LSFT(LCTL(KC_4))) // Copy portion of screen +#define KC_X0 LT(_FN, KC_ESC) +#define KC_RTOG RGB_TOG +#define KC_RMOD RGB_MOD +#define KC_RHUI RGB_HUI +#define KC_RHUD RGB_HUD + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_MAIN] = KC_KEYMAP( + F , X0 ,LCTL, + R , D , M + ), + + [_FN] = KC_KEYMAP( + F , ,RHUI, + RTOG,RMOD,RHUD + ) +}; diff --git a/keyboards/6ball/keymaps/default/rules.mk b/keyboards/6ball/keymaps/default/rules.mk new file mode 100644 index 0000000000..457a3d01d4 --- /dev/null +++ b/keyboards/6ball/keymaps/default/rules.mk @@ -0,0 +1,3 @@ +ifndef QUANTUM_DIR + include ../../../../Makefile +endif |