From 51f17f02317700e64b3c1113fe230d78bac7fecd Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 8 Dec 2010 01:47:57 +0900 Subject: add build option: NKRO_ENABLE(remove: USB_12KRO) --- usb_mouse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usb_mouse.c') diff --git a/usb_mouse.c b/usb_mouse.c index dd5d0b0ac..98292bdd8 100644 --- a/usb_mouse.c +++ b/usb_mouse.c @@ -59,8 +59,10 @@ int8_t usb_mouse_move(int8_t x, int8_t y, int8_t wheel, int8_t hwheel) UEDATX = mouse_buttons; UEDATX = x; UEDATX = y; - UEDATX = wheel; - UEDATX = hwheel; + if (mouse_protocol) { + UEDATX = wheel; + UEDATX = hwheel; + } UEINTX = 0x3A; SREG = intr_state; -- cgit v1.2.3-24-g4f1b