mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-27 15:23:53 +08:00
13 lines
203 B
C
13 lines
203 B
C
#ifndef TOUCH_H
|
|
#define TOUCH_H
|
|
|
|
typedef struct TouchState {
|
|
int fd;
|
|
int last_x, last_y;
|
|
} TouchState;
|
|
|
|
void touch_init(TouchState *s);
|
|
int touch_poll(TouchState *s, int *out_x, int *out_y);
|
|
|
|
#endif
|