diff options
author | Javier <dev.git@javispedro.com> | 2023-12-16 02:53:17 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2023-12-16 02:53:17 +0100 |
commit | e99a4724c02649c16159a2b2ab2419a9c1a2fc9d (patch) | |
tree | 0ba8c2864aaa0b3e5d9101c7602f14730a180102 /mousetsr.c | |
parent | 4091173cceea8f2c3b0cdbc19a1adb6bd87c0a94 (diff) | |
download | vbados-e99a4724c02649c16159a2b2ab2419a9c1a2fc9d.tar.gz vbados-e99a4724c02649c16159a2b2ab2419a9c1a2fc9d.zip |
separate define for tracing ps/2 protocol events
Diffstat (limited to 'mousetsr.c')
-rw-r--r-- | mousetsr.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |