Skip to content

Commit

Permalink
Set contact count to max number of fingers (#191)
Browse files Browse the repository at this point in the history
If a finger is lifted (or tapped in quick succession), the current finger is not guaranteed to be in the first slot
  • Loading branch information
1Revenger1 authored Oct 12, 2024
1 parent bd2d1c1 commit 61b34d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VoodooRMI/Functions/Input/RMITrackpadFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void RMITrackpadFunction::handleReport(RMI2DSensorReport *report)
}

inputEvent.transducers[0].isPhysicalButtonDown = clickpadState;
inputEvent.contact_count = validFingerCount;
inputEvent.contact_count = maxIdx;
inputEvent.timestamp = report->timestamp;

sendVoodooInputPacket(kIOMessageVoodooInputMessage, &inputEvent);
Expand Down

0 comments on commit 61b34d4

Please sign in to comment.