908e426c |
1 | #ifndef __PL_GUN_TS_H__ |
2 | #define __PL_GUN_TS_H__ |
3 | |
4c08b9e7 |
4 | #ifdef HAVE_TSLIB |
5 | |
6 | struct tsdev; |
7 | |
8 | struct tsdev *pl_gun_ts_init(void); |
9 | void pl_gun_ts_update(struct tsdev *ts, int *x, int *y, int *in); |
10 | void pl_set_gun_rect(int x, int y, int w, int h); |
11 | |
50306d8d |
12 | int pl_gun_ts_update_raw(struct tsdev *ts, int *x, int *y, int *p); |
13 | int pl_gun_ts_get_fd(struct tsdev *ts); |
14 | |
4c08b9e7 |
15 | #else |
16 | |
17 | #define pl_gun_ts_init() NULL |
18 | #define pl_gun_ts_update(...) do {} while (0) |
5b9f1b9e |
19 | #define pl_set_gun_rect(...) do {} while (0) |
4c08b9e7 |
20 | |
21 | #endif |
908e426c |
22 | |
23 | #endif /* __PL_GUN_TS_H__ */ |