few more fixes for h3600 ts
This commit is contained in:
parent
aae3e6dcb3
commit
f3d8476ced
|
@ -31,6 +31,8 @@
|
||||||
/* this code was used to debug MSB 24bpp code on a 16bpp frame buffer */
|
/* this code was used to debug MSB 24bpp code on a 16bpp frame buffer */
|
||||||
#undef FAKE24_ON_16
|
#undef FAKE24_ON_16
|
||||||
|
|
||||||
|
extern int KdTsPhyScreen;
|
||||||
|
|
||||||
Bool
|
Bool
|
||||||
fbdevInitialize (KdCardInfo *card, FbdevPriv *priv)
|
fbdevInitialize (KdCardInfo *card, FbdevPriv *priv)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,3 +23,7 @@ liblinux_a_SOURCES = \
|
||||||
if TSLIB
|
if TSLIB
|
||||||
liblinux_a_SOURCES += tslib.c
|
liblinux_a_SOURCES += tslib.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if H3600_TS
|
||||||
|
liblinux_a_SOURCES += ts.c
|
||||||
|
endif
|
||||||
|
|
|
@ -40,6 +40,8 @@
|
||||||
|
|
||||||
static long lastx = 0, lasty = 0;
|
static long lastx = 0, lasty = 0;
|
||||||
|
|
||||||
|
int KdTsPhyScreen = 0;
|
||||||
|
|
||||||
int
|
int
|
||||||
TsReadBytes (int fd, char *buf, int len, int min)
|
TsReadBytes (int fd, char *buf, int len, int min)
|
||||||
{
|
{
|
||||||
|
@ -98,7 +100,9 @@ TsRead (int tsPort, void *closure)
|
||||||
flags = KD_BUTTON_1;
|
flags = KD_BUTTON_1;
|
||||||
x = event.x;
|
x = event.x;
|
||||||
y = event.y;
|
y = event.y;
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
flags = /* KD_BUTTON_1 |*/ KD_MOUSE_DELTA;
|
flags = /* KD_BUTTON_1 |*/ KD_MOUSE_DELTA;
|
||||||
if ((lastx == 0) || (lasty == 0)) {
|
if ((lastx == 0) || (lasty == 0)) {
|
||||||
x = 0;
|
x = 0;
|
||||||
|
@ -109,7 +113,7 @@ TsRead (int tsPort, void *closure)
|
||||||
}
|
}
|
||||||
lastx = event.x;
|
lastx = event.x;
|
||||||
lasty = event.y;
|
lasty = event.y;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
flags = KD_MOUSE_DELTA;
|
flags = KD_MOUSE_DELTA;
|
||||||
x = 0;
|
x = 0;
|
||||||
|
|
Loading…
Reference in New Issue