logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ts_setup - find, open and configure a touch screen input device

Description

ts_setup()  will try to find, open and configure the touch screen device.  On success it allocates memory
       for a new touch screen device, opens and links the input event device to it and loads and initialises all
       modules configured in the tslib configuration file TSLIB_CONFFILE.

       If dev_name is NULLts_setup() will use the device defined by the TSLIB_TSDEVICE environment variable.

       If TSLIB_TSDEVICE is not defined ts_setup() will try to use following devices:
              /dev/input/ts,
              /dev/input/touchscreen,
              /dev/touchscreen/ucb1x00.
       After that we ts_setup() scans /dev/input/event* for the first device with property INPUT_PROP_DIRECT.

Name

       ts_setup - find, open and configure a touch screen input device

Return Value

       A pointer to the opened structtsdev is returned.

See Also

ts_open(3), ts_close(3), ts_read(3), ts_config(3), ts.conf(5)

                                                                                                     TS_SETUP(3)

Synopsis

#include<tslib.h>structtsdev*ts_setup(constchar*dev_name,intnonblock);

See Also