mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-10-21 16:32:32 +02:00
[Core] Options to constrain Speculative Hold: SPECULATIVE_HOLD_ONE_KEY and SPECULATIVE_HOLD_FLOW_TERM. (#26099)
This commit is contained in:
@@ -33,6 +33,10 @@ class KeyboardReportMatcher : public testing::MatcherInterface<report_keyboard_t
|
||||
report_keyboard_t m_report;
|
||||
};
|
||||
|
||||
inline testing::Matcher<report_keyboard_t&> KeyboardReport(const std::vector<uint8_t>& keys) {
|
||||
return testing::MakeMatcher(new KeyboardReportMatcher(keys));
|
||||
}
|
||||
|
||||
template <typename... Ts>
|
||||
inline testing::Matcher<report_keyboard_t&> KeyboardReport(Ts... keys) {
|
||||
return testing::MakeMatcher(new KeyboardReportMatcher({static_cast<uint8_t>(keys)...}));
|
||||
|
||||
Reference in New Issue
Block a user