Skip to content

Treat ToTouch state as an active contact#49

Draft
emmanuelyoussefyoussef wants to merge 1 commit into
vitoplantamura:masterfrom
emmanuelyoussefyoussef:fix/totouch-right-click
Draft

Treat ToTouch state as an active contact#49
emmanuelyoussefyoussef wants to merge 1 commit into
vitoplantamura:masterfrom
emmanuelyoussefyoussef:fix/totouch-right-click

Conversation

@emmanuelyoussefyoussef

Copy link
Copy Markdown

Summary

This change treats finger state 0x3 (ToTouch) as an active touch contact when setting TipSwitch.

Problem

When one finger is already resting on the trackpad and a second finger is added immediately before clicking, the second finger may still be in state 0x3 (ToTouch).

The current TipSwitch condition does not report that state as an active contact. As a result, Windows may see only one active finger when the physical click begins and perform a left-click instead of a two-finger right-click.

When both fingers are placed down again together, they usually reach state 0x4 (Touch) before the click occurs, which explains why right-clicking works in that case.

Changes

The TipSwitch condition was updated in:

  • AmtPtpHidFilter/Input.c
  • AmtPtpDeviceUsbUm/InputInterrupt.c

State 0x3 is now treated as an active touch in addition to the existing state checks.

Related issues

Related to #21 and #43.

Testing

This change has been reviewed statically, but I have not compiled, signed, or tested the modified driver on hardware yet. I am opening this as a draft pull request for review and testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant