add mouse function.
[tmk_keyboard.git] / usb_mouse.h
1 #ifndef USB_MOUSE_H
2 #define USB_MOUSE_H 1
3
4 #include <stdint.h>
5 #include "usb.h"
6
7
8 #define MOUSE_INTERFACE 1
9 #define MOUSE_ENDPOINT 2
10 #define MOUSE_SIZE 8
11 #define MOUSE_BUFFER EP_DOUBLE_BUFFER
12
13 extern uint8_t mouse_buttons;
14 extern uint8_t mouse_protocol;
15
16
17 int8_t usb_mouse_buttons(uint8_t left, uint8_t middle, uint8_t right);
18 int8_t usb_mouse_move(int8_t x, int8_t y, int8_t wheel);
19
20 #endif
Imprint / Impressum