Skip to content

Commit 02296dd

Browse files
committed
Set contact count to max number of fingers
If a finger is lifted (or tapped in quick succession), the current finger is not guaranteed to be in the first slot
1 parent bd2d1c1 commit 02296dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

VoodooRMI/Functions/Input/RMITrackpadFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ void RMITrackpadFunction::handleReport(RMI2DSensorReport *report)
280280
}
281281

282282
inputEvent.transducers[0].isPhysicalButtonDown = clickpadState;
283-
inputEvent.contact_count = validFingerCount;
283+
inputEvent.contact_count = maxIdx;
284284
inputEvent.timestamp = report->timestamp;
285285

286286
sendVoodooInputPacket(kIOMessageVoodooInputMessage, &inputEvent);

0 commit comments

Comments
 (0)