From c9a0436422a8884fd8b5bd706ffc70020c3437be Mon Sep 17 00:00:00 2001 From: Danny Nguyen Date: Tue, 31 Oct 2017 17:03:14 -0400 Subject: Add 6-ball macropad --- keyboards/6ball/keymaps/default/keymap.c | 28 ++++++++++++++++++++++++++++ keyboards/6ball/keymaps/default/rules.mk | 3 +++ 2 files changed, 31 insertions(+) create mode 100644 keyboards/6ball/keymaps/default/keymap.c create mode 100644 keyboards/6ball/keymaps/default/rules.mk (limited to 'keyboards/6ball/keymaps/default') 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 -- cgit v1.2.3