From 0a20f315d57d546e3b8c210de38743d83694f3de Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Sun, 1 Dec 2019 01:11:46 -0700 Subject: [PATCH] add some extra logging --- src/sysinput.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sysinput.c b/src/sysinput.c index 2834660..8f45b37 100644 --- a/src/sysinput.c +++ b/src/sysinput.c @@ -26,13 +26,19 @@ static void *input_thread(void *arg) for (attr = 1, mask = 1; attr <= 4; attr++, mask <<= 1) { if (tmp & mask) + { + Log(LDEBUG, "posting WM_HWBUTTONUP(%d)", (int)attr); MqPost1(Sys_Queue, 0, WM_HWBUTTONUP, attr); + } } tmp = st & ~last_bstate; for (attr = 1, mask = 1; attr <= 4; attr++, mask <<= 1) { if (tmp & mask) + { + Log(LDEBUG, "posting WM_HWBUTTONDOWN(%d)", (int)attr); MqPost1(Sys_Queue, 0, WM_HWBUTTONDOWN, attr); + } } last_bstate = st; }