1TS_SETUP(3) tslib TS_SETUP(3)
2
3
4
6 ts_setup - find, open and configure a touch screen input device
7
9 #include <tslib.h>
10
11 struct tsdev *ts_setup(const char *dev_name, int nonblock);
12
13
14
16 ts_setup() will try to find, open and configure the touch screen
17 device. On success it allocates memory for a new touch screen device,
18 opens and links the input event device to it and loads and initialises
19 all modules configured in the tslib configuration file TSLIB_CONFFILE.
20
21 If dev_name is NULL ts_setup() will use the device defined by the
22 TSLIB_TSDEVICE environment variable.
23
24 If TSLIB_TSDEVICE is not defined ts_setup() will try to use following
25 devices:
26 /dev/input/ts,
27 /dev/input/touchscreen,
28 /dev/touchscreen/ucb1x00.
29 After that we ts_setup() scans /dev/input/event* for the first device
30 with property INPUT_PROP_DIRECT.
31
32
34 A pointer to the opened struct tsdev is returned.
35
36
38 ts_open(3), ts_close(3), ts_read(3), ts_config(3), ts.conf(5)
39
40
41
42 TS_SETUP(3)