<?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/6370" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-01-23T04:08:53+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2012-01-23T04:08:53+02:00</updated>

		<published>2012-01-23T04:08:53+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20758#p20758</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20758#p20758"/>
		<title type="html"><![CDATA[Re: NES Controller problems!?!?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20758#p20758"><![CDATA[
I bet because the report size was wrong, you need to calculate the report size when changing it. You proly just happened to find one that matched.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Mon Jan 23, 2012 4:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hootentoot]]></name></author>
		<updated>2012-01-20T15:02:31+02:00</updated>

		<published>2012-01-20T15:02:31+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20741#p20741</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20741#p20741"/>
		<title type="html"><![CDATA[Re: NES Controller problems!?!?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20741#p20741"><![CDATA[
I now used the following selfmade descriptor:<br /><br /><div class="codebox"><p>Code: </p><pre><code>PROGMEM char usbHidReportDescriptor&#91;USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH&#93; = { /* USB report descriptor */<br />    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)<br />    0x09, 0x05,                    // USAGE (Game Pad)<br />    0xa1, 0x01,                    // COLLECTION (Application)<br />    0xa1, 0x00,                    //   COLLECTION (Physical)<br />    0x05, 0x01,                    //     USAGE_PAGE (Generic Desktop)<br />    0x09, 0x30,                    //     USAGE (X)<br />    0x09, 0x31,                    //     USAGE (Y)<br />    0x15, 0x00,                    //     LOGICAL_MINIMUM (0)<br />    0x26, 0xff, 0x00,              //     LOGICAL_MAXIMUM (255)<br />    0x75, 0x08,                    //     REPORT_SIZE (8)<br />    0x95, 0x02,                    //     REPORT_COUNT (2)<br />    0x81, 0x02,                    //     INPUT (Data,Var,Abs)<br />    0x05, 0x09,                    //     USAGE_PAGE (Button)<br />    0x19, 0x01,                    //     USAGE_MINIMUM (Button 1)<br />    0x29, 0x04,                    //     USAGE_MAXIMUM (Button 4)<br />    0x15, 0x00,                    //     LOGICAL_MINIMUM (0)<br />    0x25, 0x01,                    //     LOGICAL_MAXIMUM (1)<br />    0x95, 0x08,                    //     REPORT_COUNT (8)<br />    0x75, 0x01,                    //     REPORT_SIZE (1)<br />    0x81, 0x02,                    //     INPUT (Data,Var,Abs)<br />    0xc0,                          //   END_COLLECTION<br />    0xc0                           // END_COLLECTION<br />};</code></pre></div><br /><br />and it works now. I have no idea why, but it works like it should work.<br /><br />Greetings!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6289">hootentoot</a> — Fri Jan 20, 2012 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Daid]]></name></author>
		<updated>2012-01-20T11:41:16+02:00</updated>

		<published>2012-01-20T11:41:16+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20739#p20739</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20739#p20739"/>
		<title type="html"><![CDATA[Re: NES Controller problems!?!?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20739#p20739"><![CDATA[
I've used almost the same descriptor for a gamepad without problems for WinXP and WinVista.<br />But maybe the PID/VID pair has something to do with it. Or the silly caching that windows does.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5154">Daid</a> — Fri Jan 20, 2012 11:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hootentoot]]></name></author>
		<updated>2012-01-19T18:35:15+02:00</updated>

		<published>2012-01-19T18:35:15+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20737#p20737</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20737#p20737"/>
		<title type="html"><![CDATA[Re: NES Controller problems!?!?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20737#p20737"><![CDATA[
I now tried some different HID descriptors for joysticks and even a standard mouse, but USBlyzr always shows me the device as an HID keyboard.<br />I'm a bit frustrated at the moment because I thought the device type only depends on the descriptor, but it seems to be different somehow...<br /><br />I hope someone can tell me a reason for this phenomenon.<br /><br />Greetings,<br />Christoph<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6289">hootentoot</a> — Thu Jan 19, 2012 6:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hootentoot]]></name></author>
		<updated>2012-01-18T10:00:07+02:00</updated>

		<published>2012-01-18T10:00:07+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20723#p20723</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20723#p20723"/>
		<title type="html"><![CDATA[Re: NES Controller problems!?!?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20723#p20723"><![CDATA[
I used the predefined descriptor of the project:<br /><div class="codebox"><p>Code: </p><pre><code> PROGMEM char usbHidReportDescriptor&#91;USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH&#93; = { /* USB report descriptor */       0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)<br />    0x09, 0x05,                    // USAGE (Game Pad)<br />    0xa1, 0x01,                    //   COLLECTION (Application)<br />    0x09, 0x01,                    //     USAGE (Pointer)<br />    0xa1, 0x00,                    //     COLLECTION (Physical)<br />    0x09, 0x30,                    //       USAGE (X)<br />    0x09, 0x31,                    //       USAGE (Y)<br />    0x15, 0x00,                    //       LOGICAL_MINIMUM (0)<br />    0x26, 0xff, 0x00,            //      LOGICAL_MAXIMUM (255)<br />    0x75, 0x08,                    //       REPORT_SIZE (8)<br />    0x95, 0x02,                    //       REPORT_COUNT (2)<br />    0x81, 0x02,                    //       INPUT (Data,Var,Abs)<br />    0xc0,                          //     END_COLLECTION<br />    0x05, 0x09,                    //     USAGE_PAGE (Button)<br />    0x19, 0x01,                    //     USAGE_MINIMUM (Button 1)<br />    0x29, 0x04,                    //     USAGE_MAXIMUM (Button 4)<br />    0x15, 0x00,                    //     LOGICAL_MINIMUM (0)<br />    0x25, 0x01,                    //     LOGICAL_MAXIMUM (1)<br />    0x75, 0x01,                    //     REPORT_SIZE (1)<br />    0x95, 0x04,                    //     REPORT_COUNT (4)<br />    0x81, 0x02,                    //     INPUT (Data,Var,Abs)<br /><br />    /* Padding.*/<br />    0x75, 0x01,                    //     REPORT_SIZE (1) <br />    0x95, 0x04,                    //     REPORT_COUNT (4)<br />    0x81, 0x03,                    //     INPUT (Constant,Var,Abs)<br />    0xc0,                          //   END_COLLECTION<br />}; </code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6289">hootentoot</a> — Wed Jan 18, 2012 10:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2012-01-18T06:14:44+02:00</updated>

		<published>2012-01-18T06:14:44+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20721#p20721</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20721#p20721"/>
		<title type="html"><![CDATA[Re: NES Controller problems!?!?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20721#p20721"><![CDATA[
Then you goofed the descriptor, joystick is what you want <br />0x09, 0x04,                    // USAGE (Joystick)<br /><br />If you still have issues post your descriptor.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Wed Jan 18, 2012 6:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hootentoot]]></name></author>
		<updated>2012-01-17T19:21:27+02:00</updated>

		<published>2012-01-17T19:21:27+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20716#p20716</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20716#p20716"/>
		<title type="html"><![CDATA[NES Controller problems!?!?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6370&amp;p=20716#p20716"><![CDATA[
Hi everyone,<br /><br />I built the &quot;NES Gamepad on ATTiny45&quot; project and encountered some problems.<br />The PC-AVR communication works so far, but the device is recognized as an HID keyboard rather than a gamepad.<br />I'm not able to configure it in Windows and no key events are sent to the PC (at least no key events I can see anywhere...).<br />I built the circuit with 2 diodes in series for power supply instead of the zener diodes at the data lines and my operating system is Windows 7 x64.<br /><br />I hope anyone can help me, because I really want to play with this retro NES controller <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=";-)" title="Wink" /><br /><br />Greetings,<br />Christoph<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6289">hootentoot</a> — Tue Jan 17, 2012 7:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
