From 461e0d3d8c82cc78d29d3115af3c417bb51bb50f Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 26 Oct 2010 21:32:45 +0900 Subject: ADD: keymap macro for human to read easier ADD: controller.h for controller board definition(teensy) ADD: debug toggle --- usb_mouse.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usb_mouse.c') diff --git a/usb_mouse.c b/usb_mouse.c index 6eb47dde6..dd5d0b0ac 100644 --- a/usb_mouse.c +++ b/usb_mouse.c @@ -2,6 +2,7 @@ #include #include "usb_mouse.h" #include "print.h" +#include "debug.h" static bool is_sent = false; @@ -76,6 +77,7 @@ bool usb_mouse_is_sent(void) { } void usb_mouse_print(int8_t mouse_x, int8_t mouse_y, int8_t wheel_v, int8_t wheel_h) { + if (!debug_mouse) return; print("mouse btn|x y v h: "); phex(mouse_buttons); print("|"); phex(mouse_x); print(" "); -- cgit v1.2.3-24-g4f1b