New conditional. (REQUIRED_MODULES): Demand xcalibrateext if building
XCalibrate. New file. Add xcalibrate.c. Read raw events if requested.
This commit is contained in:
parent
d4d0c8470c
commit
6741fadc52
|
@ -62,7 +62,8 @@
|
||||||
static long lastx = 0, lasty = 0;
|
static long lastx = 0, lasty = 0;
|
||||||
static struct tsdev *tsDev = NULL;
|
static struct tsdev *tsDev = NULL;
|
||||||
|
|
||||||
/* extern int TSLibWantRawData; */
|
void (*tslib_raw_event_hook)(int x, int y, int pressure, void *closure);
|
||||||
|
void *tslib_raw_event_closure;
|
||||||
|
|
||||||
int KdTsPhyScreen = 0;
|
int KdTsPhyScreen = 0;
|
||||||
|
|
||||||
|
@ -75,11 +76,14 @@ TsRead (int tsPort, void *closure)
|
||||||
long x, y;
|
long x, y;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
/*
|
if (tslib_raw_event_hook)
|
||||||
if (TSLibWantRawData)
|
{
|
||||||
n = ts_read_raw(tsDev, &event, 1);
|
if (ts_read_raw(tsDev, &event, 1) == 1)
|
||||||
else
|
{
|
||||||
*/
|
tslib_raw_event_hook (event.x, event.y, event.pressure, tslib_raw_event_closure);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
n = ts_read(tsDev, &event, 1);
|
n = ts_read(tsDev, &event, 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue