I’m sorry if this is a silly question, but I can’t seem to obtain the tip switch values when I’m filtering a pen. I know that the MSDN docs say that tip switch has usage page of 0x0d (Digitizers) and usage 0x42, but when I try to extract that data, I get NTSTATUS 0xc0110004, HIDP_STATUS_USAGE_NOT_FOUND. I’ve also noticed that in this MSDN Doc where it shows the report descriptor (https://msdn.microsoft.com/en-us/library/windows/hardware/jj151566(v=vs.85).aspx), Tip Switch is not directly under any usage pages compared to say, the x value or the y value. Also, there are two Digitizer usage pages. I’m able to collect the data from the usages in the bottom Digitizer usage page, but not the top ones.
Here’s a code snippet of how I’m trying to collect the tip switch data by the way:
ULONG tipSwitch;
status = HidP_GetUsageValue(
HidP_Input,
0x0d, // Usage Page
0,
0x42, // Usage
&tipSwitch, // Usage value
preparsedData,
report,
caps.InputReportByteLength
);
Thanks!