-
-// Set the mouse buttons. To create a "click", 2 calls are needed,
-// one to push the button down and the second to release it
-int8_t usb_mouse_buttons(uint8_t left, uint8_t middle, uint8_t right)
-{
- uint8_t mask=0;
-
- if (left) mask |= 1;
- if (middle) mask |= 4;
- if (right) mask |= 2;
- mouse_buttons = mask;
- return usb_mouse_move(0, 0, 0, 0);
-}
-
-// Move the mouse. x, y and wheel are -127 to 127. Use 0 for no movement.
-int8_t usb_mouse_move(int8_t x, int8_t y, int8_t wheel, int8_t hwheel)
+int8_t usb_mouse_send(int8_t x, int8_t y, int8_t wheel_v, int8_t wheel_h, uint8_t buttons)