GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
TS_SETUP(3) tslib TS_SETUP(3)

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

#include <tslib.h>

struct tsdev *ts_setup(const char *dev_name, int nonblock);

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 NULL ts_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.

A pointer to the opened struct tsdev is returned.

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

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.