Skip to content

Commit

Permalink
Add a couple of todos to keyboard_report_util.cpp
Browse files Browse the repository at this point in the history
Also print the modifier state
  • Loading branch information
fredizzimo committed Jun 18, 2017
1 parent 43d8fa5 commit fb9b8da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_common/keyboard_report_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,16 @@ bool operator==(const report_keyboard_t& lhs, const report_keyboard_t& rhs) {

std::ostream& operator<<(std::ostream& stream, const report_keyboard_t& value) {
stream << "Keyboard report:" << std::endl;
stream << "Mods: " << value.mods << std::endl;
// TODO: This should probably print friendly names for the keys
for (uint32_t k: get_keys(value)) {
stream << k << std::endl;
}
return stream;
}

KeyboardReportMatcher::KeyboardReportMatcher(const std::vector<uint8_t>& keys) {
// TODO: Support modifiers
memset(m_report.raw, 0, sizeof(m_report.raw));
for (auto k: keys) {
add_key_to_report(&m_report, k);
Expand Down

0 comments on commit fb9b8da

Please sign in to comment.