1 diff -Nur --exclude=CVS xc-011010.src/include/extensions/lbxstr.h xc-011010/include/extensions/lbxstr.h
2 --- xc-011010.src/include/extensions/lbxstr.h Tue Jul 31 20:44:35 2001
3 +++ xc-011010/include/extensions/lbxstr.h Sun Apr 21 12:35:05 2002
8 -#include <X11/extensions/XLbx.h>
13 diff -Nur --exclude=CVS xc-011010.src/programs/Xserver/hw/kdrive/fbdev/fbdev.h xc-011010/programs/Xserver/hw/kdrive/fbdev/fbdev.h
14 --- xc-011010.src/programs/Xserver/hw/kdrive/fbdev/fbdev.h Sun Jun 3 17:52:45 2001
15 +++ xc-011010/programs/Xserver/hw/kdrive/fbdev/fbdev.h Sun Apr 21 12:36:25 2002
20 +#include <sys/types.h>
24 diff -Nur xc-011010.src2/lib/X11/Xlib.h xc-011010/lib/X11/Xlib.h
25 --- xc-011010.src/programs/Xserver/hw/kdrive/linux/ts.c Tue Jul 10 22:58:19 2001
26 +++ xc-011010/programs/Xserver/hw/kdrive/linux/ts.c Tue Apr 23 20:16:23 2002
30 #include <sys/ioctl.h>
31 -#include <linux/h3600_ts.h> /* touch screen events */
34 + unsigned short pressure;
38 + struct timeval stamp;
41 static long lastx = 0, lasty = 0;
46 -TsRead (int tsPort, void *closure)
53 - unsigned long flags;
54 - unsigned long buttons;
56 - n = Ps2ReadBytes (tsPort, (char *) &event,
57 - sizeof (event), sizeof (event));
58 - if (n == sizeof (event))
63 - * HACK ATTACK. (static global variables used !)
64 - * Here we test for the touch screen driver actually being on the
65 - * touch screen, if it is we send absolute coordinates. If not,
66 - * then we send delta's so that we can track the entire vga screen.
68 - if (TsScreen == TsFbdev) {
69 - flags = KD_BUTTON_1;
73 - flags = /* KD_BUTTON_1 |*/ KD_MOUSE_DELTA;
74 - if ((lastx == 0) || (lasty == 0)) {
78 - x = event.x - lastx;
79 - y = event.y - lasty;
85 - flags = KD_MOUSE_DELTA;
91 - KdEnqueueMouseEvent (flags, x, y);
92 +void TsRead (int tsPort, void *closure) {
98 + unsigned long flags;
99 + unsigned long buttons;
101 + n = Ps2ReadBytes(tsPort, (char *) &event, sizeof (event), sizeof (event));
102 + if (n >= sizeof (event)) {
103 + if (event.pressure >= 100) {
104 + flags = KD_BUTTON_1;
105 + x = (960 - event.x) * 640 / (920);
106 + y = (960 - event.y) * 480 / (920);
107 + //ErrorF("flags %d x %d y %dn",flags,event.x,event.y);
110 + flags = KD_MOUSE_DELTA;
114 + KdEnqueueMouseEvent(flags, x, y);
120 - "/dev/h3600_ts" /* temporary name; note this code can try
122 + "/dev/ts" /* temporary name; note this code can try
123 to open more than one device */
137 diff -Nur xc-011010.src/startx xc-011010/startx
138 --- ../../buildroot-tux.Apr25-1/build/xc-011010.src/startx Thu Apr 25 05:20:35 2002
139 +++ xc-011010/startx Sun Apr 28 05:35:35 2002
145 +/usr/X11R6/bin/Xfbdev -ac &
147 +/usr/X11R6/bin/matchbox &
149 +/usr/X11R6/bin/minisys &
150 +/usr/X11R6/bin/minitime &
151 +/usr/X11R6/bin/rxvt &
152 diff -Nur xc-011010.src/lib/Xft/xftgram.y xc-011010/lib/Xft/xftgram.y
153 --- ../../buildroot-tux.Apr25-1/build/xc-011010/lib/Xft/xftgram.y Thu Apr 25 05:20:35 2002
154 +++ xc-011010/lib/Xft/xftgram.y Sun Apr 28 05:35:35 2002
157 matrix.__REALLY_YY__ = $5;
161 { $$ = (double) $1; }
163 diff -Nur xc-011010.src/programs/twm/gram.y xc-011010/programs/twm/gram.y
164 --- ../../buildroot-tux.Apr25-1/build/xc-011010/programs/twm/gram.y Thu Apr 25 05:20:35 2002
165 +++ xc-011010/programs/twm/gram.y Sun Apr 28 05:35:35 2002
171 number : NUMBER { $$ = $1; }