Skip to content

Commit

Permalink
fix a problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lingrottin committed Feb 26, 2024
1 parent 78b14f4 commit 30dd561
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions MapTP.App/Touchpad/Handler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ public static TouchpadContact[] ParseInput(IntPtr lParam)
{
creator.ContactId = (int)value;
}
else if(valueCap.Usage == 0x42)
{
creator.TipSwitch = (int)value;

}
}
else if (valueCap.UsagePage == 0x01)
{
Expand All @@ -242,10 +247,7 @@ public static TouchpadContact[] ParseInput(IntPtr lParam)
creator.Y = (int)value;
break;
}
}else if(valueCap.UsagePage == 0x09 && valueCap.Usage == 0x42)
{
creator.TipSwitch = (int)value;
}
}
break;
}

Expand Down

0 comments on commit 30dd561

Please sign in to comment.