From 310f1ae9485193f6ed0c8d764437526521df091d Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Thu, 3 May 2001 00:42:29 +0000 Subject: [PATCH] - make it easy to enable mouse debug output again with macro --- bochs/iodev/keyboard.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bochs/iodev/keyboard.cc b/bochs/iodev/keyboard.cc index 0352af322..7f1f3237d 100644 --- a/bochs/iodev/keyboard.cc +++ b/bochs/iodev/keyboard.cc @@ -31,7 +31,7 @@ #include "bochs.h" - +#define VERBOSE_KBD_DEBUG 0 #define MOUSE_MODE_RESET 10 @@ -1303,8 +1303,10 @@ bx_keyb_c::mouse_motion(int delta_x, int delta_y, unsigned button_state) if ( (delta_y < -1) || (delta_y > 1) ) delta_y /= 2; - //fprintf(stderr, "# MOUSE: Dx=%d Dy=%d\n", - // delta_x, delta_y); +#ifdef VERBOSE_KBD_DEBUG + if (delta_x != 0 || delta_y != 0) + bx_printf("[mouse] Dx=%d Dy=%d\n", delta_x, delta_y); +#endif /* ifdef VERBOSE_KBD_DEBUG */ b1 = (button_state & 0x0f) | 0x08; // bit3 always set