summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/tslib/tslib/event1.patch
blob: 88cc3f3a2acb64d1c77cc0ec97003a37efc7bbb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- tslib/tests/ts_calibrate.c~event1
+++ tslib/tests/ts_calibrate.c
@@ -179,11 +179,7 @@
 	if( (tsdevice = getenv("TSLIB_TSDEVICE")) != NULL ) {
 		ts = ts_open(tsdevice,0);
 	} else {
-#ifdef USE_INPUT_API
-		ts = ts_open("/dev/input/event0", 0);
-#else
-		ts = ts_open("/dev/touchscreen/ucb1x00", 0);
-#endif /* USE_INPUT_API */
+		ts = ts_open("/dev/input/event1", 0);
 	}
 
 	if (!ts) {
--- tslib/tests/ts_print.c~event1
+++ tslib/tests/ts_print.c
@@ -28,11 +28,7 @@
         if( (tsdevice = getenv("TSLIB_TSDEVICE")) != NULL ) {
                 ts = ts_open(tsdevice,0);
         } else {
-#ifdef USE_INPUT_API
-                ts = ts_open("/dev/input/event0", 0);
-#else
-                ts = ts_open("/dev/touchscreen/ucb1x00", 0);
-#endif /* USE_INPUT_API */
+                ts = ts_open("/dev/input/event1", 0);
         }
 
 	if (!ts) {
--- tslib/tests/ts_test.c~event1
+++ tslib/tests/ts_test.c
@@ -120,11 +120,7 @@
 	signal(SIGTERM, sig);
 
 	if ((tsdevice = getenv("TSLIB_TSDEVICE")) == NULL) {
-#ifdef USE_INPUT_API
-		tsdevice = strdup ("/dev/input/event0");
-#else
-		tsdevice = strdup ("/dev/touchscreen/ucb1x00");
-#endif /* USE_INPUT_API */
+		tsdevice = strdup ("/dev/input/event1");
         }
 
 	ts = ts_open (tsdevice, 0);
--- tslib/tests/ts_print_raw.c~event1
+++ tslib/tests/ts_print_raw.c
@@ -28,11 +28,7 @@
         if( (tsdevice = getenv("TSLIB_TSDEVICE")) != NULL ) {
                 ts = ts_open(tsdevice,0);
         } else {
-#ifdef USE_INPUT_API
-                ts = ts_open("/dev/input/event0", 0);
-#else
-                ts = ts_open("/dev/touchscreen/ucb1x00", 0);
-#endif /* USE_INPUT_API */
+                ts = ts_open("/dev/input/event1", 0);
         }
 
 	if (!ts) {
--- tslib/tests/ts_harvest.c~event1
+++ tslib/tests/ts_harvest.c
@@ -75,11 +75,7 @@
 	signal(SIGTERM, sig);
 
 	if ((tsdevice = getenv("TSLIB_TSDEVICE")) == NULL) {
-#ifdef USE_INPUT_API
-		tsdevice = strdup ("/dev/input/event0");
-#else
-		tsdevice = strdup ("/dev/touchscreen/ucb1x00");
-#endif /* USE_INPUT_API */
+		tsdevice = strdup ("/dev/input/event1");
         }
 
 	ts = ts_open (tsdevice, 0);