From 50347c692be18146c9da2b07272059c3a15582c0 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 31 Oct 2023 03:10:01 +0900 Subject: [PATCH] core: mouse debug print --- tmk_core/common/host.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tmk_core/common/host.c b/tmk_core/common/host.c index b3095ad7..5af60cf4 100644 --- a/tmk_core/common/host.c +++ b/tmk_core/common/host.c @@ -106,6 +106,10 @@ void host_mouse_send(report_mouse_t *report) #endif (*driver->send_mouse)(report); report->buttons = b; + + if (debug_mouse) { + xprintf("mouse: [%02X|%d %d %d %d]\n", report->buttons, report->x, report->y, report->v, report->h); + } } void host_system_send(uint16_t report)