aboutsummaryrefslogtreecommitdiff
path: root/frontend/pl_gun_ts.h
blob: 8a3362712256266eb1173775d579609f6973a1ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __PL_GUN_TS_H__
#define __PL_GUN_TS_H__

#ifdef HAVE_TSLIB

struct tsdev;

struct tsdev *pl_gun_ts_init(void);
void pl_gun_ts_update(struct tsdev *ts, int *x, int *y, int *in);
void pl_set_gun_rect(int x, int y, int w, int h);

int pl_gun_ts_update_raw(struct tsdev *ts, int *x, int *y, int *p);
int pl_gun_ts_get_fd(struct tsdev *ts);

#else

#define pl_gun_ts_init() NULL
#define pl_gun_ts_update(...) do {} while (0)
#define pl_set_gun_rect(...) do {} while (0)

#endif

#endif /* __PL_GUN_TS_H__ */