Skip to content

Commit

Permalink
✨ Add first combos (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
sroccaserra committed Jan 7, 2022
1 parent 7591e55 commit aec7290
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions moonlander/keymaps/sroccaserra/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
#define USB_SUSPEND_WAKEUP_DELAY 0
#define FIRMWARE_VERSION u8"jXKZa/mDJvX"
#define RGB_MATRIX_STARTUP_SPD 60

#define COMBO_COUNT 2
#define COMBO_TERM 40
#define COMBO_PERMISSIVE_HOLD
19 changes: 19 additions & 0 deletions moonlander/keymaps/sroccaserra/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,25 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),
};

///
// Start combos

// Note: also update COMBO_COUNT in config.h
//
// - https://docs.qmk.fm/#/keycodes
// - https://github.com/qmk/qmk_firmware/blob/master/docs/feature_combo.md

const uint16_t PROGMEM esc_combo[] = { KC_E, KC_R, COMBO_END };
const uint16_t PROGMEM enter_combo[] = { KC_COMMA, KC_DOT, COMBO_END };

combo_t key_combos[COMBO_COUNT] = {
COMBO(esc_combo, KC_ESCAPE),
COMBO(enter_combo, KC_ENTER),
};

// End combos
///

extern bool g_suspend_state;
extern rgb_config_t rgb_matrix_config;

Expand Down
2 changes: 2 additions & 0 deletions moonlander/keymaps/sroccaserra/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ MOUSEKEY_ENABLE = no
WEBUSB_ENABLE = yes
ORYX_ENABLE = yes
SRC = matrix.c

COMBO_ENABLE = yes

0 comments on commit aec7290

Please sign in to comment.