From 69b6886ea984de7179f127cf611ccff4d94c2c65 Mon Sep 17 00:00:00 2001 From: katherine Date: Thu, 18 Jan 2024 18:47:13 -0700 Subject: add qmk mouse keys --- .../keebio/nyquist/keymaps/ageha/config.h | 3 ++- .../keebio/nyquist/keymaps/ageha/keymap.c | 24 ++++++++++++++++++++++ .../keebio/nyquist/keymaps/ageha/rules.mk | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/config.h b/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/config.h index cc55961..6a6a4bc 100644 --- a/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/config.h +++ b/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/config.h @@ -1,6 +1,7 @@ - #pragma once +#define MK_KINETIC_SPEED + #undef RGBLIGHT_ANIMATIONS #define RGBLIGHT_EFFECT_BREATHING #define RGBLIGHT_SPLIT diff --git a/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c b/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c index ac5559b..9610133 100644 --- a/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c +++ b/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c @@ -3,6 +3,7 @@ #define _BASE 0 #define _QWERTY 1 #define _FN 2 +#define _MOUSE 3 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { @@ -69,15 +70,38 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ ), +/* MOUSE + * ,------------------------------------------ ------------------------------------------. + * | | | | | | | | | | | | | | + * |------+------+------+------+------+------+ +------+------+------+------+------+------| + * | | ScUp | MsU | ScDn | | | | | | B3 | | | | + * |------+------+------+------+------+------+ +------+------+------+------+------+------| + * | | MsL | MsD | MsR | | | | | B2 | B1 | | | | + * |------+------+------+------+------+------+ +------+------+------+------+------+------| + * | | | | | | | | | | | | | | + * |------+------+------+------+------+------+ +------+------+------+------+------+------| + * | | | | | | | | | | | | + * `------------------------------------------ ------------------------------------------' + */ +[_MOUSE] = LAYOUT( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, KC_WH_U, KC_MS_U, KC_WH_D, _______, _______, _______, _______, KC_BTN3, _______, _______, _______, + _______, KC_MS_L, KC_MS_D, KC_MS_R, _______, _______, _______, KC_BTN2, KC_BTN1, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ +), + }; const uint16_t PROGMEM combo_qwerty[] = { KC_LCTL, KC_RCTL, COMBO_END }; const uint16_t PROGMEM combo_fn[] = { KC_LALT, KC_RALT, COMBO_END }; +const uint16_t PROGMEM combo_mouse[] = { KC_LSFT, KC_RSFT, COMBO_END }; combo_t key_combos[] = { COMBO(combo_qwerty, TG(_QWERTY)), COMBO(combo_fn, TG(_FN)), + COMBO(combo_mouse, TG(_MOUSE)), }; uint16_t COMBO_LEN = sizeof(key_combos) / sizeof(combo_t); diff --git a/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/rules.mk b/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/rules.mk index ea3f311..58eeaf2 100644 --- a/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/rules.mk +++ b/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/rules.mk @@ -1,7 +1,7 @@ RGBLIGHT_ENABLE = yes COMBO_ENABLE = yes +MOUSEKEY_ENABLE = yes -MOUSEKEY_ENABLE = no CONSOLE_ENABLE = no SPACE_CADET_ENABLE = no GRAVE_ESC_ENABLE = no -- cgit v1.2.3