<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/10134" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2015-11-17T05:40:04+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/10134</id>

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2015-11-17T05:40:04+02:00</updated>

		<published>2015-11-17T05:40:04+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=10134&amp;p=30512#p30512</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=10134&amp;p=30512#p30512"/>
		<title type="html"><![CDATA[Re: USB Joystick HID descriptor]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=10134&amp;p=30512#p30512"><![CDATA[
0x05, 0x01, // USAGE_PAGE (Generic Desktop)<br /><strong class="text-strong">0x15, 0x00, // LOGICAL_MINIMUM (0)</strong> this is none sense. <br />0x09, 0x04, // USAGE (Joystick)<br />0xa1, 0x01, // COLLECTION (Application)<br />0x05, 0x02, // USAGE_PAGE (Simulation Controls)<br />0x09, 0xbb, // USAGE (Throttle)<br />0x15, 0x81, // LOGICAL_MINIMUM (-127)<br />0x25, 0x7f, // LOGICAL_MAXIMUM (127)<br />0x75, 0x08, // REPORT_SIZE (8)<br />0x95, 0x01, // REPORT_COUNT (1)<br />0x81, 0x02, // INPUT (Data,Var,Abs)<br /><br />0x05, 0x01, // USAGE_PAGE (Generic Desktop)<br />0x09, 0x01, // USAGE (Pointer)<br />0xa1, 0x00, // COLLECTION (Physical)<br />0x09, 0x30, // USAGE (X) for ailerons<br />0x09, 0x31, // USAGE (Y) for elevator<br />0x09, 0x32, // USAGE (Z) for rudder<br />0x09, 0x33, // USAGE (Rx) for spoiler<br />0x09, 0x34, // USAGE (Ry) for throttle 1<br />0x09, 0x35, // USAGE (Rz) for throttle 2<br />0x09, 0x38, // USAGE (Wheel) for trim wheel<br />0x09, 0x37, // USAGE (Dial) for flap<br /><strong class="text-strong">0x75, 0x08, // REPORT_SIZE (8)</strong> //use need a report size here<br />0x95, 0x08, // REPORT_COUNT (8)<br />0x81, 0x02, // INPUT (Data,Var,Abs)<br />0xc0, // END_COLLECTION<br /><br /><strong class="text-strong">//button<br />0x05, 0x09, // USAGE_PAGE (Button)<br />0x19, 0x01, // USAGE_MINIMUM (Button 1)<br />0x29, 0x08, // USAGE_MAXIMUM (Button <img class="smilies" src="./../../../images/smilies/icon_cool.gif" alt="8)" title="Cool" /><br />0x15, 0x00, // LOGICAL_MINIMUM (0)<br />0x25, 0x01, // LOGICAL_MAXIMUM (1)<br />0x75, 0x01, // REPORT_SIZE (1)<br />0x95, 0x08, // REPORT_COUNT (8)<br />0x81, 0x02, //  INPUT</strong><br /><br />0xc0 // END_COLLECTION<br /><br /><br />Don't forget to change your report count in your main. I think that is 10 by my count.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Tue Nov 17, 2015 5:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[szacpp]]></name></author>
		<updated>2015-11-14T08:39:15+02:00</updated>

		<published>2015-11-14T08:39:15+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=10134&amp;p=30501#p30501</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=10134&amp;p=30501#p30501"/>
		<title type="html"><![CDATA[USB Joystick HID descriptor]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=10134&amp;p=30501#p30501"><![CDATA[
Hi,<br />I wrote HID descriptor for Joystick, the joystick has 8 axis. I want to know did I write correct code for axis and how can I add 8 buttons into the below code I have many tried for buttons but failed?<br />sorry for my bad english.<br />pls help me.<br /> <br />0x05, 0x01, // USAGE_PAGE (Generic Desktop)<br />0x15, 0x00, // LOGICAL_MINIMUM (0)<br />0x09, 0x04, // USAGE (Joystick)<br />0xa1, 0x01, // COLLECTION (Application)<br />0x05, 0x02, // USAGE_PAGE (Simulation Controls)<br />0x09, 0xbb, // USAGE (Throttle)<br />0x15, 0x81, // LOGICAL_MINIMUM (-127)<br />0x25, 0x7f, // LOGICAL_MAXIMUM (127)<br />0x75, 0x08, // REPORT_SIZE (8)<br />0x95, 0x01, // REPORT_COUNT (1)<br />0x81, 0x02, // INPUT (Data,Var,Abs)<br />0x05, 0x01, // USAGE_PAGE (Generic Desktop)<br />0x09, 0x01, // USAGE (Pointer)<br />0xa1, 0x00, // COLLECTION (Physical)<br />0x09, 0x30, // USAGE (X) for ailerons<br />0x09, 0x31, // USAGE (Y) for elevator<br />0x09, 0x32, // USAGE (Z) for rudder<br />0x09, 0x33, // USAGE (Rx) for spoiler<br />0x09, 0x34, // USAGE (Ry) for throttle 1<br />0x09, 0x35, // USAGE (Rz) for throttle 2<br />0x09, 0x38, // USAGE (Wheel) for trim wheel<br />0x09, 0x37, // USAGE (Dial) for flap<br />0x95, 0x08, // REPORT_COUNT (8)<br />0x81, 0x02, // INPUT (Data,Var,Abs)<br />0xc0, // END_COLLECTION<br />0xc0 // END_COLLECTION<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=21685">szacpp</a> — Sat Nov 14, 2015 8:39 am</p><hr />
]]></content>
	</entry>
	</feed>
