Kaleidoscope
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbsoluteMouseAPI Class Reference

#include <AbsoluteMouseAPI.h>

Inheritance diagram for AbsoluteMouseAPI:
Inheritance graph
[legend]

Public Member Functions

 AbsoluteMouseAPI (void)
 
void begin (void)
 
void end (void)
 
void click (uint8_t b=MOUSE_LEFT)
 
void moveTo (uint16_t x, uint16_t y, signed char wheel=0)
 
void move (int x, int y, signed char wheel=0)
 
void press (uint8_t b=MOUSE_LEFT)
 
void release (uint8_t b=MOUSE_LEFT)
 
bool isPressed (uint8_t b=MOUSE_LEFT)
 
virtual void sendReport (void *data, int length)
 

Protected Member Functions

void buttons (uint8_t b)
 
int16_t qadd16 (int16_t base, int16_t increment)
 

Protected Attributes

uint16_t xAxis
 
uint16_t yAxis
 
uint8_t _buttons
 

Constructor & Destructor Documentation

◆ AbsoluteMouseAPI()

AbsoluteMouseAPI::AbsoluteMouseAPI ( void  )
inline

Member Function Documentation

◆ begin()

void AbsoluteMouseAPI::begin ( void  )
inline

◆ buttons()

void AbsoluteMouseAPI::buttons ( uint8_t  b)
inlineprotected

◆ click()

void AbsoluteMouseAPI::click ( uint8_t  b = MOUSE_LEFT)
inline

◆ end()

void AbsoluteMouseAPI::end ( void  )
inline

◆ isPressed()

bool AbsoluteMouseAPI::isPressed ( uint8_t  b = MOUSE_LEFT)
inline

◆ move()

void AbsoluteMouseAPI::move ( int  x,
int  y,
signed char  wheel = 0 
)
inline

◆ moveTo()

void AbsoluteMouseAPI::moveTo ( uint16_t  x,
uint16_t  y,
signed char  wheel = 0 
)
inline

◆ press()

void AbsoluteMouseAPI::press ( uint8_t  b = MOUSE_LEFT)
inline

◆ qadd16()

int16_t AbsoluteMouseAPI::qadd16 ( int16_t  base,
int16_t  increment 
)
inlineprotected

◆ release()

void AbsoluteMouseAPI::release ( uint8_t  b = MOUSE_LEFT)
inline

◆ sendReport()

virtual void AbsoluteMouseAPI::sendReport ( void *  data,
int  length 
)
virtual

Reimplemented in SingleAbsoluteMouse_, and AbsoluteMouse_.

Member Data Documentation

◆ _buttons

uint8_t AbsoluteMouseAPI::_buttons
protected

◆ xAxis

uint16_t AbsoluteMouseAPI::xAxis
protected

◆ yAxis

uint16_t AbsoluteMouseAPI::yAxis
protected

The documentation for this class was generated from the following files: