mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 03:21:48 +08:00
[Bug] Fix issue with Repeat Key-Combo test (#21005)
This commit is contained in:
parent
6a7ba7a29d
commit
d7220da5cb
|
@ -16,3 +16,4 @@
|
||||||
REPEAT_KEY_ENABLE = yes
|
REPEAT_KEY_ENABLE = yes
|
||||||
|
|
||||||
COMBO_ENABLE = yes
|
COMBO_ENABLE = yes
|
||||||
|
INTROSPECTION_KEYMAP_C = test_combos.c
|
||||||
|
|
8
tests/repeat_key/repeat_key_combo/test_combos.c
Normal file
8
tests/repeat_key/repeat_key_combo/test_combos.c
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
// Copyright 2023 Stefan Kerkmann (@KarlK90)
|
||||||
|
// Copyright 2023 @filterpaper
|
||||||
|
// Copyright 2023 Nick Brassel (@tzarc)
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
const uint16_t xy_combo[] PROGMEM = {KC_X, KC_Y, COMBO_END};
|
||||||
|
combo_t key_combos[] = {COMBO(xy_combo, KC_Q)};
|
|
@ -24,13 +24,6 @@ using ::testing::InSequence;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
// Define a combo: KC_X + KC_Y = KC_Q.
|
|
||||||
const uint16_t xy_combo[] PROGMEM = {KC_X, KC_Y, COMBO_END};
|
|
||||||
combo_t key_combos[] = {COMBO(xy_combo, KC_Q)};
|
|
||||||
uint16_t COMBO_LEN = sizeof(key_combos) / sizeof(*key_combos);
|
|
||||||
} // extern "C"
|
|
||||||
|
|
||||||
class RepeatKey : public TestFixture {};
|
class RepeatKey : public TestFixture {};
|
||||||
|
|
||||||
// Tests repeating a combo, KC_X + KC_Y = KC_Q, by typing
|
// Tests repeating a combo, KC_X + KC_Y = KC_Q, by typing
|
||||||
|
|
Loading…
Reference in a new issue