mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-31 11:30:09 -04:00
Forgot to fix custom keycode enum
This commit is contained in:
parent
d5a94942b8
commit
3298971de8
2 changed files with 8 additions and 7 deletions
|
@ -26,11 +26,11 @@ void insert_brackets(uint16_t left, uint16_t right, uint32_t ms) {
|
||||||
void single_tap(uint16_t key) {
|
void single_tap(uint16_t key) {
|
||||||
|
|
||||||
tap_code16(key);
|
tap_code16(key);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void double_tap(uint16_t key, uint32_t ms) {
|
void double_tap(uint16_t key, uint32_t ms) {
|
||||||
|
|
||||||
tap_code16(key);
|
tap_code16(key);
|
||||||
wait_ms(ms);
|
wait_ms(ms);
|
||||||
tap_code16(key);
|
tap_code16(key);
|
||||||
|
@ -38,11 +38,13 @@ void double_tap(uint16_t key, uint32_t ms) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void insert_brackets(uint16_t left, uint16_t right, uint32_t ms) {
|
void insert_brackets(uint16_t left, uint16_t right, uint32_t ms) {
|
||||||
|
|
||||||
tap_code16(left);
|
tap_code16(left);
|
||||||
wait_ms(ms);
|
wait_ms(ms);
|
||||||
tap_code16(right);
|
tap_code16(right);
|
||||||
wait_ms(ms);
|
wait_ms(ms);
|
||||||
tap_code16(KC_LEFT);
|
tap_code16(KC_LEFT);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool process_tap_hold_key(keyrecord_t* record, uint16_t tap_keycode, uint16_t hold_keycode, int mode) {
|
bool process_tap_hold_key(keyrecord_t* record, uint16_t tap_keycode, uint16_t hold_keycode, int mode) {
|
||||||
|
|
|
@ -21,19 +21,18 @@ enum keycodes {
|
||||||
TH_LABK,
|
TH_LABK,
|
||||||
TH_LBRC,
|
TH_LBRC,
|
||||||
TH_LPRN,
|
TH_LPRN,
|
||||||
|
TH_DQUO,
|
||||||
TH_SQUO,
|
TH_SQUO,
|
||||||
|
|
||||||
TH_EQL,
|
|
||||||
TH_BSLS,
|
TH_BSLS,
|
||||||
TH_SLSH,
|
TH_SLSH,
|
||||||
|
TH_PIPE,
|
||||||
|
|
||||||
TH_COMM,
|
TH_COMM,
|
||||||
TH_DOT,
|
TH_DOT,
|
||||||
TH_PERC,
|
TH_PERC,
|
||||||
TH_EXLM,
|
|
||||||
TH_AT,
|
|
||||||
TH_QUES,
|
|
||||||
|
|
||||||
|
TH_EQL,
|
||||||
TH_MINS,
|
TH_MINS,
|
||||||
TH_GRV,
|
TH_GRV,
|
||||||
TH_SCLN,
|
TH_SCLN,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue