1
0
Fork 0

Keymap introspection for combos. (#19670)

This commit is contained in:
Nick Brassel 2023-05-15 22:27:37 +10:00 committed by GitHub
parent 433dc60686
commit 5faa23d54c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
226 changed files with 533 additions and 729 deletions

View file

@ -25,7 +25,6 @@
#define PERMISSIVE_HOLD
// Combo settings
#define COMBO_COUNT 3
#define COMBO_TERM 35
#ifdef PS2_DRIVER_USART

View file

@ -17,25 +17,25 @@
#include QMK_KEYBOARD_H
#include "keymap_swedish.h"
enum layers {
BASE,
MBO,
SYM,
NUM,
enum layers {
BASE,
MBO,
SYM,
NUM,
FN
};
enum combos {
WF_ARNG,
EI_ADIA,
UK_ODIA
enum combos {
WF_ARNG,
EI_ADIA,
UK_ODIA
};
#if defined PS2_MOUSE_ENABLE
#include "ps2_mouse.h"
#endif
#if defined AUTO_BUTTONS && defined PS2_MOUSE_ENABLE
#if defined AUTO_BUTTONS && defined PS2_MOUSE_ENABLE
static uint16_t auto_buttons_timer;
extern int tp_buttons; // mousekey button state set in action.c and used in ps2_mouse.c
@ -82,7 +82,7 @@ const uint16_t PROGMEM arng_combo[] = {ALT_R, SFT_S, COMBO_END};
const uint16_t PROGMEM adia_combo[] = {SFT_E, ALT_I, COMBO_END};
const uint16_t PROGMEM odia_combo[] = {SE_U, SE_K, COMBO_END};
combo_t key_combos[COMBO_COUNT] = {
combo_t key_combos[] = {
[WF_ARNG] = COMBO(arng_combo, SE_ARNG),
[EI_ADIA] = COMBO(adia_combo, SE_ADIA),
[UK_ODIA] = COMBO(odia_combo, SE_ODIA)