1 --- xc-011010/config/cf/X11.tmpl.orig 2005-05-12 16:16:17.000000000 -0600
2 +++ xc-011010/config/cf/X11.tmpl 2005-05-12 16:16:23.000000000 -0600
4 $(RM) index.raw file.nPS file.PS file.txt
7 -#ifndef MakeSimpleDoc(file,srcs)
9 #define MakeSimpleDoc(file,srcs) MakeDepSimpleDoc(file,srcs,srcs)
12 --- xc-011010/config/cf/kdrive.cf.orig 2005-05-12 16:14:50.000000000 -0600
13 +++ xc-011010/config/cf/kdrive.cf 2005-05-12 16:15:03.000000000 -0600
15 #undef ServerOSDefines
16 #define ServerOSDefines -DDDXOSINIT
18 -#ifndef Other IConfigFiles
19 +#ifndef OtherIConfigFiles
20 #define OtherIConfigFile $(IRULESRC)/kdrive.cf
23 diff -Nur --exclude=CVS xc-011010.src/include/extensions/lbxstr.h xc-011010/include/extensions/lbxstr.h
24 --- xc-011010.src/include/extensions/lbxstr.h Tue Jul 31 20:44:35 2001
25 +++ xc-011010/include/extensions/lbxstr.h Sun Apr 21 12:35:05 2002
30 -#include <X11/extensions/XLbx.h>
35 diff -Nur --exclude=CVS xc-011010.src/programs/Xserver/hw/kdrive/fbdev/fbdev.h xc-011010/programs/Xserver/hw/kdrive/fbdev/fbdev.h
36 --- xc-011010.src/programs/Xserver/hw/kdrive/fbdev/fbdev.h Sun Jun 3 17:52:45 2001
37 +++ xc-011010/programs/Xserver/hw/kdrive/fbdev/fbdev.h Sun Apr 21 12:36:25 2002
42 +#include <sys/types.h>
46 diff -Nur xc-011010.src2/lib/X11/Xlib.h xc-011010/lib/X11/Xlib.h
47 --- xc-011010.src/programs/Xserver/hw/kdrive/linux/ts.c Tue Jul 10 22:58:19 2001
48 +++ xc-011010/programs/Xserver/hw/kdrive/linux/ts.c Tue Apr 23 20:16:23 2002
52 #include <sys/ioctl.h>
53 -#include <linux/h3600_ts.h> /* touch screen events */
56 + unsigned short pressure;
60 + struct timeval stamp;
63 static long lastx = 0, lasty = 0;
68 -TsRead (int tsPort, void *closure)
75 - unsigned long flags;
76 - unsigned long buttons;
78 - n = Ps2ReadBytes (tsPort, (char *) &event,
79 - sizeof (event), sizeof (event));
80 - if (n == sizeof (event))
85 - * HACK ATTACK. (static global variables used !)
86 - * Here we test for the touch screen driver actually being on the
87 - * touch screen, if it is we send absolute coordinates. If not,
88 - * then we send delta's so that we can track the entire vga screen.
90 - if (TsScreen == TsFbdev) {
91 - flags = KD_BUTTON_1;
95 - flags = /* KD_BUTTON_1 |*/ KD_MOUSE_DELTA;
96 - if ((lastx == 0) || (lasty == 0)) {
100 - x = event.x - lastx;
101 - y = event.y - lasty;
107 - flags = KD_MOUSE_DELTA;
113 - KdEnqueueMouseEvent (flags, x, y);
114 +void TsRead (int tsPort, void *closure) {
120 + unsigned long flags;
121 + unsigned long buttons;
123 + n = Ps2ReadBytes(tsPort, (char *) &event, sizeof (event), sizeof (event));
124 + if (n >= sizeof (event)) {
125 + if (event.pressure >= 100) {
126 + flags = KD_BUTTON_1;
127 + x = (960 - event.x) * 640 / (920);
128 + y = (960 - event.y) * 480 / (920);
129 + //ErrorF("flags %d x %d y %dn",flags,event.x,event.y);
132 + flags = KD_MOUSE_DELTA;
136 + KdEnqueueMouseEvent(flags, x, y);
142 - "/dev/h3600_ts" /* temporary name; note this code can try
144 + "/dev/ts" /* temporary name; note this code can try
145 to open more than one device */
159 diff -Nur xc-011010.src/startx xc-011010/startx
160 --- ../../buildroot-tux.Apr25-1/build/xc-011010.src/startx Thu Apr 25 05:20:35 2002
161 +++ xc-011010/startx Sun Apr 28 05:35:35 2002
167 +/usr/X11R6/bin/Xfbdev -ac &
169 +/usr/X11R6/bin/matchbox &
171 +/usr/X11R6/bin/minisys &
172 +/usr/X11R6/bin/minitime &
173 +/usr/X11R6/bin/rxvt &
174 diff -Nur xc-011010.src/lib/Xft/xftgram.y xc-011010/lib/Xft/xftgram.y
175 --- ../../buildroot-tux.Apr25-1/build/xc-011010/lib/Xft/xftgram.y Thu Apr 25 05:20:35 2002
176 +++ xc-011010/lib/Xft/xftgram.y Sun Apr 28 05:35:35 2002
179 matrix.__REALLY_YY__ = $5;
183 { $$ = (double) $1; }
185 diff -Nur xc-011010.src/programs/twm/gram.y xc-011010/programs/twm/gram.y
186 --- ../../buildroot-tux.Apr25-1/build/xc-011010/programs/twm/gram.y Thu Apr 25 05:20:35 2002
187 +++ xc-011010/programs/twm/gram.y Sun Apr 28 05:35:35 2002
193 number : NUMBER { $$ = $1; }