terminal: print RESYNC state in evcat

Whenever a key-event is part of a RESYNC, we should print that verbosely
as those events are out-of-order.
This commit is contained in:
David Herrmann
2014-09-22 14:27:02 +02:00
parent 20725d929f
commit 4c4e4128f3
+3
View File
@@ -203,6 +203,9 @@ static void kdata_print(idev_data *data) {
k->value == 1 ? "DOWN" :
"REPEAT");
/* Resync state */
printf(" | %-6s", data->resync ? "RESYNC" : "");
/* Keycode that triggered the event */
printf(" | %5u", (unsigned)k->keycode);