2019-01-25 22:09:42 +00:00
|
|
|
#ifndef TOUCH_H
|
|
|
|
#define TOUCH_H
|
|
|
|
|
|
|
|
#include "protocol.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* touch_init(void)
|
|
|
|
* Initiialize mouse
|
|
|
|
*/
|
|
|
|
void touch_init(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* enable/disable mouse cursor
|
|
|
|
*/
|
|
|
|
void touch_allow(padBool allow);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Is left mouse button pressed?
|
|
|
|
*/
|
|
|
|
padBool touch_lmb(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get mouse position, and if LMB pressed, send touch event.
|
|
|
|
*/
|
2019-01-31 22:51:28 +00:00
|
|
|
void touch_main(padPt* coord);
|
2019-01-25 22:09:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* touch done
|
|
|
|
*/
|
|
|
|
void touch_done(void);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* TOUCH_H */
|