diff options
| author | Philip Paeps <philip@FreeBSD.org> | 2004-08-08 01:26:00 +0000 |
|---|---|---|
| committer | Philip Paeps <philip@FreeBSD.org> | 2004-08-08 01:26:00 +0000 |
| commit | c4dbfe3893e779669a83ec0016c7a0e09751957a (patch) | |
| tree | a83c87af23f9bd506ce5df1f2832e4dfedbdebda /sys/isa | |
| parent | e314368afd1dfc30913ed91a302b266ab6dbc9a1 (diff) | |
Notes
Diffstat (limited to 'sys/isa')
| -rw-r--r-- | sys/isa/psm.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/isa/psm.c b/sys/isa/psm.c index 731653b2f7a5..415cf74becaa 100644 --- a/sys/isa/psm.c +++ b/sys/isa/psm.c @@ -2508,9 +2508,16 @@ psmsoftintr(void *arg) /* Pressure value. */ z = pb->ipacket[2]; - w = ((pb->ipacket[0] & 0x30) >> 2) | - ((pb->ipacket[0] & 0x04) >> 1) | - ((pb->ipacket[3] & 0x04) >> 2); + + /* Finger width value */ + if (sc->synhw.capExtended) { + w = ((pb->ipacket[0] & 0x30) >> 2) | + ((pb->ipacket[0] & 0x04) >> 1) | + ((pb->ipacket[3] & 0x04) >> 2); + } else { + /* Assume a finger of regular width */ + w = 4; + } /* Button presses */ ms.button = 0; |
