Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

usb_mouse.h 397B

1234567891011121314151617181920
  1. #ifndef USB_MOUSE_H
  2. #define USB_MOUSE_H 1
  3. #include <stdint.h>
  4. #include "usb.h"
  5. #define MOUSE_INTERFACE 1
  6. #define MOUSE_ENDPOINT 2
  7. #define MOUSE_SIZE 8
  8. #define MOUSE_BUFFER EP_DOUBLE_BUFFER
  9. extern uint8_t mouse_buttons;
  10. extern uint8_t mouse_protocol;
  11. int8_t usb_mouse_buttons(uint8_t left, uint8_t middle, uint8_t right);
  12. int8_t usb_mouse_move(int8_t x, int8_t y, int8_t wheel);
  13. #endif