mirror of
https://github.com/tschak909/platotermClassicMac.git
synced 2024-12-28 03:29:20 +00:00
34 lines
430 B
C
34 lines
430 B
C
#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.
|
|
*/
|
|
void touch_main(void);
|
|
|
|
/**
|
|
* touch done
|
|
*/
|
|
void touch_done(void);
|
|
|
|
|
|
#endif /* TOUCH_H */
|