[yast-commit] r66183 - in /trunk/hardware-detection: package/yast2-hardware-detection.changes src/HwParse.cc
Author: lslezak Date: Thu Sep 29 17:12:28 2011 New Revision: 66183 URL: http://svn.opensuse.org/viewcvs/yast?rev=66183&view=rev Log: return joystick details (number of buttons and axes) Modified: trunk/hardware-detection/package/yast2-hardware-detection.changes trunk/hardware-detection/src/HwParse.cc Modified: trunk/hardware-detection/package/yast2-hardware-detection.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/hardware-detection/package/yast2-hardware-detection.changes?rev=66183&r1=66182&r2=66183&view=diff ============================================================================== --- trunk/hardware-detection/package/yast2-hardware-detection.changes (original) +++ trunk/hardware-detection/package/yast2-hardware-detection.changes Thu Sep 29 17:12:28 2011 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Thu Sep 29 15:08:59 UTC 2011 - lslezak@suse.cz + +- return joystick details (number of buttons and axes) + +------------------------------------------------------------------- Tue Sep 13 10:50:28 CEST 2011 - mvidner@suse.cz - Use pr_bios for .probe.bios so that smbios info is included Modified: trunk/hardware-detection/src/HwParse.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/hardware-detection/src/HwParse.cc?rev=66183&r1=66182&r2=66183&view=diff ============================================================================== --- trunk/hardware-detection/src/HwParse.cc (original) +++ trunk/hardware-detection/src/HwParse.cc Thu Sep 29 17:12:28 2011 @@ -1261,6 +1261,23 @@ } } break; +#ifdef HD_VERSION +#if HD_VERSION >= 19 + case hd_detail_joystick: { + joystick_t *info = hd->detail->joystick.data; + + if (info) + { + YCPMap detail; + detail->add (YCPString ("buttons"), YCPInteger (info->buttons)); + detail->add (YCPString ("axes"), YCPInteger (info->axes)); + out->add (YCPString ("detail"), detail); + } + } +#else +#warning "Joystick details not available" +#endif +#endif default: break; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn2.opensuse.org