summaryrefslogtreecommitdiff
path: root/usb_mouse.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2010-12-08 01:47:57 +0900
committertmk <nobody@nowhere>2010-12-08 01:57:55 +0900
commit51f17f02317700e64b3c1113fe230d78bac7fecd (patch)
treea040a624004cd3cec2d2fd122069554a4039b8e1 /usb_mouse.c
parent66ece29b0e14534d57b680db47a5967d5264ca85 (diff)
add build option: NKRO_ENABLE(remove: USB_12KRO)
Diffstat (limited to 'usb_mouse.c')
-rw-r--r--usb_mouse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usb_mouse.c b/usb_mouse.c
index dd5d0b0ac3..98292bdd84 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;