summaryrefslogtreecommitdiff
path: root/usb_mouse.c
diff options
context:
space:
mode:
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;