Tidy up use of keycode range helpers (#19756)
This commit is contained in:
1 parent
2ffdec5dc2
commit
1d0b4c8d38
16 files changed
+39
-33
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user