forked from enlightenment/efl
ecore fb: Use a default tslib device when none is specified through the environment variable TSLIB_TSDEVICE.
It seems that tslib’s applications has been using /dev/input/event0 as default device for more than a decade. Let’s use the same one.
This commit is contained in:
parent
1ce89485d3
commit
a42d2fef69
|
@ -83,12 +83,12 @@ ecore_fb_ts_init(void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_TSLIB
|
#ifdef HAVE_TSLIB
|
||||||
char *tslib_tsdevice = NULL;
|
char *tslib_tsdevice = NULL;
|
||||||
if (
|
|
||||||
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
|
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
|
||||||
(getuid() == geteuid()) &&
|
if (getuid() == geteuid())
|
||||||
#endif
|
#endif
|
||||||
((tslib_tsdevice = getenv("TSLIB_TSDEVICE"))))
|
|
||||||
{
|
{
|
||||||
|
if ((tslib_tsdevice = getenv("TSLIB_TSDEVICE")) == NULL)
|
||||||
|
tslib_tsdevice = "/dev/input/event0";
|
||||||
printf( "ECORE_FB: TSLIB_TSDEVICE = '%s'\n", tslib_tsdevice );
|
printf( "ECORE_FB: TSLIB_TSDEVICE = '%s'\n", tslib_tsdevice );
|
||||||
_ecore_fb_tslib_tsdev = ts_open( tslib_tsdevice, 1 ); /* 1 = nonblocking, 0 = blocking */
|
_ecore_fb_tslib_tsdev = ts_open( tslib_tsdevice, 1 ); /* 1 = nonblocking, 0 = blocking */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue