Tidy up use of keycode range helpers (#19756)
This commit is contained in:
parent
2ffdec5dc2
commit
1d0b4c8d38
16 changed files with 39 additions and 33 deletions
|
@ -97,7 +97,7 @@ std::ostream& operator<<(std::ostream& os, const report_keyboard_t& report) {
|
|||
KeyboardReportMatcher::KeyboardReportMatcher(const std::vector<uint8_t>& keys) {
|
||||
memset(m_report.raw, 0, sizeof(m_report.raw));
|
||||
for (auto k : keys) {
|
||||
if (IS_MOD(k)) {
|
||||
if (IS_MODIFIER_KEYCODE(k)) {
|
||||
m_report.mods |= MOD_BIT(k);
|
||||
} else {
|
||||
add_key_to_report(&m_report, k);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue