Browse Source

device: Add spam output for raw windows device

rdb 4 years ago
parent
commit
8b19761844
1 changed files with 7 additions and 0 deletions
  1. 7 0
      panda/src/device/winRawInputDevice.cxx

+ 7 - 0
panda/src/device/winRawInputDevice.cxx

@@ -663,6 +663,13 @@ process_report(PCHAR ptr, size_t size) {
   if (status == HIDP_STATUS_SUCCESS) {
     for (ULONG di = 0; di < count; ++di) {
       if (data[di].DataIndex != _hat_data_index) {
+        if (device_cat.is_spam()) {
+          device_cat.spam()
+            << "Read RawValue " << data[di].RawValue
+            << " for DataIndex " << data[di].DataIndex
+            << " from raw device " << _path << "\n";
+        }
+
         if (data[di].DataIndex >= _indices.size()) {
           if (device_cat.is_debug()) {
             device_cat.debug()