]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Add a couple of todos to keyboard_report_util.cpp
authorFred Sundvik <fsundvik@gmail.com>
Sun, 18 Jun 2017 21:22:12 +0000 (00:22 +0300)
committerFred Sundvik <fsundvik@gmail.com>
Sun, 18 Jun 2017 21:22:12 +0000 (00:22 +0300)
Also print the modifier state

tests/test_common/keyboard_report_util.cpp

index 34e53cd4cdf597be6d2c9a1dd3c24d569d34ea27..aca4433dd610e60e396d4ce3154dab7edca5deed 100644 (file)
@@ -47,6 +47,8 @@ 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;
     }
@@ -54,6 +56,7 @@ std::ostream& operator<<(std::ostream& stream, const report_keyboard_t& value) {
 }
 
 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);