Call ts_read multiple times, to avoid events getting stuck in the pipeline.

This commit is contained in:
Phil Blundell 2004-07-02 21:30:00 +00:00
parent 7976ee51af
commit fd594b0559

View File

@ -85,9 +85,7 @@ TsRead (int tsPort, void *closure)
return;
}
n = ts_read(tsDev, &event, 1);
if (n == 1)
while (ts_read(tsDev, &event, 1) == 1)
{
if (event.pressure)
{