- update to Xorg X11R7.4 and reorganization of the xorg-section
[packages.git] / Xorg / lib / tslib / patches / event1.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- tslib/tests/ts_calibrate.c~event1
7 +++ tslib/tests/ts_calibrate.c
8 @@ -179,11 +179,7 @@
9         if( (tsdevice = getenv("TSLIB_TSDEVICE")) != NULL ) {
10                 ts = ts_open(tsdevice,0);
11         } else {
12 -#ifdef USE_INPUT_API
13 -               ts = ts_open("/dev/input/event0", 0);
14 -#else
15 -               ts = ts_open("/dev/touchscreen/ucb1x00", 0);
16 -#endif /* USE_INPUT_API */
17 +               ts = ts_open("/dev/input/event1", 0);
18         }
19  
20         if (!ts) {
21 --- tslib/tests/ts_print.c~event1
22 +++ tslib/tests/ts_print.c
23 @@ -28,11 +28,7 @@
24          if( (tsdevice = getenv("TSLIB_TSDEVICE")) != NULL ) {
25                  ts = ts_open(tsdevice,0);
26          } else {
27 -#ifdef USE_INPUT_API
28 -                ts = ts_open("/dev/input/event0", 0);
29 -#else
30 -                ts = ts_open("/dev/touchscreen/ucb1x00", 0);
31 -#endif /* USE_INPUT_API */
32 +                ts = ts_open("/dev/input/event1", 0);
33          }
34  
35         if (!ts) {
36 --- tslib/tests/ts_test.c~event1
37 +++ tslib/tests/ts_test.c
38 @@ -120,11 +120,7 @@
39         signal(SIGTERM, sig);
40  
41         if ((tsdevice = getenv("TSLIB_TSDEVICE")) == NULL) {
42 -#ifdef USE_INPUT_API
43 -               tsdevice = strdup ("/dev/input/event0");
44 -#else
45 -               tsdevice = strdup ("/dev/touchscreen/ucb1x00");
46 -#endif /* USE_INPUT_API */
47 +               tsdevice = strdup ("/dev/input/event1");
48          }
49  
50         ts = ts_open (tsdevice, 0);
51 --- tslib/tests/ts_print_raw.c~event1
52 +++ tslib/tests/ts_print_raw.c
53 @@ -28,11 +28,7 @@
54          if( (tsdevice = getenv("TSLIB_TSDEVICE")) != NULL ) {
55                  ts = ts_open(tsdevice,0);
56          } else {
57 -#ifdef USE_INPUT_API
58 -                ts = ts_open("/dev/input/event0", 0);
59 -#else
60 -                ts = ts_open("/dev/touchscreen/ucb1x00", 0);
61 -#endif /* USE_INPUT_API */
62 +                ts = ts_open("/dev/input/event1", 0);
63          }
64  
65         if (!ts) {
66 --- tslib/tests/ts_harvest.c~event1
67 +++ tslib/tests/ts_harvest.c
68 @@ -75,11 +75,7 @@
69         signal(SIGTERM, sig);
70  
71         if ((tsdevice = getenv("TSLIB_TSDEVICE")) == NULL) {
72 -#ifdef USE_INPUT_API
73 -               tsdevice = strdup ("/dev/input/event0");
74 -#else
75 -               tsdevice = strdup ("/dev/touchscreen/ucb1x00");
76 -#endif /* USE_INPUT_API */
77 +               tsdevice = strdup ("/dev/input/event1");
78          }
79  
80         ts = ts_open (tsdevice, 0);