From 8b197618440edf7c6dc9a2726ac970300b4bf8bd Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 26 Dec 2021 12:23:20 +0100 Subject: [PATCH] device: Add spam output for raw windows device --- panda/src/device/winRawInputDevice.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/panda/src/device/winRawInputDevice.cxx b/panda/src/device/winRawInputDevice.cxx index 1370561852..7345406ebb 100644 --- a/panda/src/device/winRawInputDevice.cxx +++ b/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()