HIDSetUsageValue() Question
HIDSetUsageValue() Question
- Subject: HIDSetUsageValue() Question
- From: Herb Petschauer <email@hidden>
- Date: Tue, 14 Jun 2005 20:59:14 -0700
Hi,
I need to know how to use HIDSetUsageValue() properly. Currently I'm calling
status = HIDGetButtonsOnPage( kHIDInputReport,
kHIDPage_Button,
kHIDUsage_GD_Mouse,
usageList,
&usageListSize,
preparsedReportDescriptorData,
reportData,
reportLength );
and that works great. Just for fun I'm trying to map a right click
into a left click. i.e.
...
for (UInt32 usageNum = 0; (result != kIOReturnSuccess) && (usageNum
< usageListSize);
usageNum++)
{
if ( (usageList[usageNum] == (kHIDUsage_Button_2)) )
{
result = HIDSetUsageValue( kHIDInputReport,
kHIDPage_Button,
kHIDUsage_GD_Mouse,
kHIDUsage_Button_4 + 1,
0,
preparsedReportDescriptorData,
reportData,
reportLength );
...
}
}
the result I get from HIDSetUsageValue() and HIDGetUsageValue() for
that matter is always kHIDUsageNotFoundErr. Err..., it was valid when
calling HIDGetButtonsOnPage() so obviously I'm having a brain fart.
The kHIDUsage_GD_Mouse for "collection" may be incorrect, I've also tried "0".
Any quick pointers here?
Thanks.
Cheers,
H.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden