Files
dragonpilot/selfdrive/common/touch.h

22 lines
340 B
C
Raw Normal View History

2016-11-29 18:34:21 -08:00
#ifndef TOUCH_H
#define TOUCH_H
2017-05-11 12:41:17 -07:00
#ifdef __cplusplus
extern "C" {
#endif
2016-11-29 18:34:21 -08:00
typedef struct TouchState {
int fd;
int last_x, last_y;
} TouchState;
void touch_init(TouchState *s);
2018-07-12 18:52:06 -07:00
int touch_poll(TouchState *s, int *out_x, int *out_y, int timeout);
2019-04-23 01:41:19 +00:00
int touch_read(TouchState *s, int* out_x, int* out_y);
2016-11-29 18:34:21 -08:00
2017-05-11 12:41:17 -07:00
#ifdef __cplusplus
}
#endif
2016-11-29 18:34:21 -08:00
#endif