summaryrefslogtreecommitdiff
path: root/src/lib/ecore_fb
diff options
context:
space:
mode:
authorChidambar Zinnoury <chidambar.zinnoury@zefla.fr>2015-10-28 17:17:54 +0100
committerChidambar Zinnoury <chidambar.zinnoury@zefla.fr>2015-10-28 17:17:54 +0100
commita42d2fef6971d85a6962f0b8a94cc32398772f6a (patch)
treef97fa540776c48b62a8c6b8ec2f6fb38d6b55a7a /src/lib/ecore_fb
parent1ce89485d35047af88c8e09d358e97541465077d (diff)
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.
Diffstat (limited to 'src/lib/ecore_fb')
-rw-r--r--src/lib/ecore_fb/ecore_fb_ts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ecore_fb/ecore_fb_ts.c b/src/lib/ecore_fb/ecore_fb_ts.c
index b9880ec63e..f34d41aba6 100644
--- a/src/lib/ecore_fb/ecore_fb_ts.c
+++ b/src/lib/ecore_fb/ecore_fb_ts.c
@@ -83,12 +83,12 @@ ecore_fb_ts_init(void)
83{ 83{
84#ifdef HAVE_TSLIB 84#ifdef HAVE_TSLIB
85 char *tslib_tsdevice = NULL; 85 char *tslib_tsdevice = NULL;
86 if (
87#if defined(HAVE_GETUID) && defined(HAVE_GETEUID) 86#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
88 (getuid() == geteuid()) && 87 if (getuid() == geteuid())
89#endif 88#endif
90 ((tslib_tsdevice = getenv("TSLIB_TSDEVICE"))))
91 { 89 {
90 if ((tslib_tsdevice = getenv("TSLIB_TSDEVICE")) == NULL)
91 tslib_tsdevice = "/dev/input/event0";
92 printf( "ECORE_FB: TSLIB_TSDEVICE = '%s'\n", tslib_tsdevice ); 92 printf( "ECORE_FB: TSLIB_TSDEVICE = '%s'\n", tslib_tsdevice );
93 _ecore_fb_tslib_tsdev = ts_open( tslib_tsdevice, 1 ); /* 1 = nonblocking, 0 = blocking */ 93 _ecore_fb_tslib_tsdev = ts_open( tslib_tsdevice, 1 ); /* 1 = nonblocking, 0 = blocking */
94 94