diff options
author | Phil Blundell <pb@reciva.com> | 2004-07-02 21:30:00 +0000 |
---|---|---|
committer | Phil Blundell <pb@reciva.com> | 2004-07-02 21:30:00 +0000 |
commit | fd594b0559caa98ee0823be956aecf9c9d2e52bc (patch) | |
tree | 04ac56296df24211cd8974673af000af1dd9f173 /hw/kdrive/linux | |
parent | 7976ee51afcad41b611e642d2feb31d805dedcf6 (diff) |
Call ts_read multiple times, to avoid events getting stuck in the pipeline.
Diffstat (limited to 'hw/kdrive/linux')
-rw-r--r-- | hw/kdrive/linux/tslib.c | 4 |
1 files changed, 1 insertions, 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) { |