site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QsbJK+/OjuwnOTMJVCql7z1yuJp70Vdkv0w79YeRH62IzHz4ddeuBmBoauSTpOLcqw/6lDAp2pX/+lHY12dHTdf51zyQDGWVZmFDiledwCWriflyPiPl6rZnP/EBCBjfFWBF6KOQ7f6rJye4ozFP72gKVG8ruYnJzchkPuDyS8Q= 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com