aboutsummaryrefslogtreecommitdiff
path: root/mousetsr.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2023-12-16 02:53:17 +0100
committerJavier <dev.git@javispedro.com>2023-12-16 02:53:17 +0100
commite99a4724c02649c16159a2b2ab2419a9c1a2fc9d (patch)
tree0ba8c2864aaa0b3e5d9101c7602f14730a180102 /mousetsr.c
parent4091173cceea8f2c3b0cdbc19a1adb6bd87c0a94 (diff)
downloadvbados-e99a4724c02649c16159a2b2ab2419a9c1a2fc9d.tar.gz
vbados-e99a4724c02649c16159a2b2ab2419a9c1a2fc9d.zip
separate define for tracing ps/2 protocol events
Diffstat (limited to 'mousetsr.c')
-rw-r--r--mousetsr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mousetsr.c b/mousetsr.c
index 5b68ca4..8c42057 100644
--- a/mousetsr.c
+++ b/mousetsr.c
@@ -726,7 +726,7 @@ static void handle_ps2_packet(void)
x = status & PS2M_STATUS_X_NEG ? 0xFF00 | x : x;
y = -(status & PS2M_STATUS_Y_NEG ? 0xFF00 | y : y);
-#if TRACE_EVENTS
+#if TRACE_PROTO
dprintf("ps2 packet %x %d %d %d\n", status, x, y, z);
#endif /* TRACE_EVENTS */
@@ -825,7 +825,7 @@ static void ps2_mouse_handler(uint16_t word0, uint16_t word1, uint16_t word2, ui
// receiving one byte at a time.
// We have to compute synchronization ourselves.
-#if TRACE_EVENTS
+#if TRACE_PROTO
dprintf("ps2 callback byte %d/%d = %x\n",
1 + data.cur_packet_bytes, data.packet_size, word0 & 0xFF);
#endif /* TRACE_EVENTS */
@@ -1133,7 +1133,7 @@ static void int33_handler(union INTPACK r)
break;
case INT33_SET_MOUSE_POSITION:
#if TRACE_CALLS
- dputs("Mouse set position");
+ dprintf("Mouse set position %d, %d\n", r.w.cx, r.w.dx);
#endif
data.pos.x = r.w.cx;
data.pos.y = r.w.dx;