summaryrefslogtreecommitdiffstats
path: root/usb_mouse.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2010-10-26 14:32:45 +0200
committertmk <nobody@nowhere>2010-10-26 14:32:45 +0200
commit461e0d3d8c82cc78d29d3115af3c417bb51bb50f (patch)
tree844b28eed904f72aa18873f25de435379fa1bad3 /usb_mouse.c
parent7a336b05ec2d1056fe2206ae218199c66e8980da (diff)
downloadqmk_firmware-461e0d3d8c82cc78d29d3115af3c417bb51bb50f.tar.gz
qmk_firmware-461e0d3d8c82cc78d29d3115af3c417bb51bb50f.tar.xz
ADD: keymap macro for human to read easier
ADD: controller.h for controller board definition(teensy) ADD: debug toggle
Diffstat (limited to 'usb_mouse.c')
-rw-r--r--usb_mouse.c2
1 files changed, 2 insertions, 0 deletions
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 <util/delay.h>
#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(" ");