Re: [Plib-devel] X45 and X52 and buttons
Brought to you by:
sjbaker
From: Fay J. F Dr C. U. AFSEO/SK <joh...@eg...> - 2007-01-17 00:14:03
|
Jim, I have put your change into the SVN tree. Thank you for submitting it. If I may request, in the future it would be very helpful if you put a starting line number in with your patch. Also, lines that are added frequently have a "+" in the first space while those that are deleted have a "-" there. Everybody else, If there is a serious objection to this change (it's a one-line addition--I didn't see any corresponding code in the other operating systems' files), we can take it out very easily. John F. Fay Technical Fellow Jacobs/Sverdrup TEAS Group 850-883-1294 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Jim Campbell Sent: Sunday, January 07, 2007 5:58 AM To: pli...@li... Subject: [Plib-devel] X45 and X52 and buttons Hi, Without wishing to extend this thread too far - as well as the buttons on X52 problem (ie more than 32) there was also a problem with X45 not having its "dial" recognised so I added patch to jsMacOSX.cxx : if (page == kHIDPage_GenericDesktop) { switch (usage) /* look at usage to determine function */ { case kHIDUsage_GD_X: case kHIDUsage_GD_Y: case kHIDUsage_GD_Z: case kHIDUsage_GD_Rx: case kHIDUsage_GD_Ry: case kHIDUsage_GD_Rz: case kHIDUsage_GD_Slider: // for throttle / trim controls case kHIDUsage_GD_Dial: //printf(" axis\n"); /*joy->os->*/addAxisElement(joy, (CFDictionaryRef) element); break; case kHIDUsage_GD_Hatswitch: //printf(" hat\n"); /*joy->os->*/addHatElement(joy, (CFDictionaryRef) element); break; default: ulSetError(UL_WARNING, "input type element has weird usage (%lx)\n", usage); whether this was the case on other platforms I dont know! It does show that more advanced joysticks have facilities that may have to be tailored!! - we may need to recognise GD_Wheel as well for instance. The HIDusage tables on the Mac do give a pointer to the range of possibilities (including a special section for simulation) - see "HID Usage Tables" specification: http://www.usb.org/developers/hidpage/#Class_Definition under "GenericDesktop" and "Simulation" pages. cheers Jim ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |