From fd594b0559caa98ee0823be956aecf9c9d2e52bc Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Fri, 2 Jul 2004 21:30:00 +0000 Subject: [PATCH] Call ts_read multiple times, to avoid events getting stuck in the pipeline. --- hw/kdrive/linux/tslib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/kdrive/linux/tslib.c b/hw/kdrive/linux/tslib.c index db29976c9..e22ebd93f 100644 --- a/hw/kdrive/linux/tslib.c +++ b/hw/kdrive/linux/tslib.c @@ -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) {