add some extra logging

This commit is contained in:
Amy G. Bowersox 2019-12-01 01:11:46 -07:00
parent 340e08232e
commit 0a20f315d5

View File

@ -26,14 +26,20 @@ static void *input_thread(void *arg)
for (attr = 1, mask = 1; attr <= 4; attr++, mask <<= 1) for (attr = 1, mask = 1; attr <= 4; attr++, mask <<= 1)
{ {
if (tmp & mask) if (tmp & mask)
{
Log(LDEBUG, "posting WM_HWBUTTONUP(%d)", (int)attr);
MqPost1(Sys_Queue, 0, WM_HWBUTTONUP, attr); MqPost1(Sys_Queue, 0, WM_HWBUTTONUP, attr);
} }
}
tmp = st & ~last_bstate; tmp = st & ~last_bstate;
for (attr = 1, mask = 1; attr <= 4; attr++, mask <<= 1) for (attr = 1, mask = 1; attr <= 4; attr++, mask <<= 1)
{ {
if (tmp & mask) if (tmp & mask)
{
Log(LDEBUG, "posting WM_HWBUTTONDOWN(%d)", (int)attr);
MqPost1(Sys_Queue, 0, WM_HWBUTTONDOWN, attr); MqPost1(Sys_Queue, 0, WM_HWBUTTONDOWN, attr);
} }
}
last_bstate = st; last_bstate = st;
} }