28 #include "PluggableUSB.h" 35 #define DESCRIPTOR_ABS_MOUSE_BUTTONS \ 37 D_USAGE_PAGE, D_PAGE_BUTTON, \ 38 D_USAGE_MINIMUM, 0x01, \ 39 D_USAGE_MAXIMUM, 0x08, \ 40 D_LOGICAL_MINIMUM, 0x00, \ 41 D_LOGICAL_MAXIMUM, 0x01, \ 42 D_REPORT_COUNT, 0x08, \ 43 D_REPORT_SIZE, 0x01, \ 44 D_INPUT, (D_DATA|D_VARIABLE|D_ABSOLUTE), 46 # define DESCRIPTOR_ABS_MOUSE_XY \ 48 D_USAGE_PAGE, D_PAGE_GENERIC_DESKTOP, \ 51 D_MULTIBYTE(D_LOGICAL_MINIMUM), 0x00, 0x00, \ 52 D_MULTIBYTE(D_LOGICAL_MAXIMUM), 0xFF, 0x7f, \ 53 D_REPORT_SIZE, 0x10, \ 54 D_REPORT_COUNT, 0x02, \ 55 D_INPUT, (D_DATA|D_VARIABLE|D_ABSOLUTE), 57 #define DESCRIPTOR_ABS_MOUSE_WHEEL \ 60 D_LOGICAL_MINIMUM, 0x81, \ 61 D_LOGICAL_MAXIMUM, 0x7f, \ 62 D_REPORT_SIZE, 0x08, \ 63 D_REPORT_COUNT, 0x01, \ 64 D_INPUT, (D_DATA|D_VARIABLE|D_RELATIVE), 79 inline void begin(
void);
80 inline void end(
void);
83 inline void moveTo(uint16_t x, uint16_t y,
signed char wheel = 0);
84 inline void move(
int x,
int y,
signed char wheel = 0);
90 virtual void sendReport(
void* data,
int length);
98 inline int16_t
qadd16(int16_t base, int16_t increment);
uint16_t yAxis
Definition: AbsoluteMouseAPI.h:94
void release(uint8_t b=MOUSE_LEFT)
Definition: AbsoluteMouseAPI.hpp:91
void end(void)
Definition: AbsoluteMouseAPI.hpp:59
void begin(void)
Definition: AbsoluteMouseAPI.hpp:54
Definition: AbsoluteMouseAPI.h:76
virtual void sendReport(void *data, int length)
bool isPressed(uint8_t b=MOUSE_LEFT)
Definition: AbsoluteMouseAPI.hpp:96
void press(uint8_t b=MOUSE_LEFT)
Definition: AbsoluteMouseAPI.hpp:86
AbsoluteMouseAPI(void)
Definition: AbsoluteMouseAPI.hpp:26
int8_t wheel
Definition: AbsoluteMouseAPI.h:72
uint8_t buttons
Definition: AbsoluteMouseAPI.h:69
uint16_t xAxis
Definition: AbsoluteMouseAPI.h:93
Definition: AbsoluteMouseAPI.h:66
uint8_t _buttons
Definition: AbsoluteMouseAPI.h:95
void moveTo(uint16_t x, uint16_t y, signed char wheel=0)
Definition: AbsoluteMouseAPI.hpp:71
uint16_t xAxis
Definition: AbsoluteMouseAPI.h:70
void click(uint8_t b=MOUSE_LEFT)
Definition: AbsoluteMouseAPI.hpp:64
void move(int x, int y, signed char wheel=0)
Definition: AbsoluteMouseAPI.hpp:82
uint16_t yAxis
Definition: AbsoluteMouseAPI.h:71
void buttons(uint8_t b)
Definition: AbsoluteMouseAPI.hpp:29
int16_t qadd16(int16_t base, int16_t increment)
Definition: AbsoluteMouseAPI.hpp:36