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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-10-16T03:10:23+02:00</updated>

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

		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2008-10-16T03:10:23+02:00</updated>

		<published>2008-10-16T03:10:23+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1814&amp;p=6444#p6444</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1814&amp;p=6444#p6444"/>
		<title type="html"><![CDATA[USB_KEY_SPACEBAR from the UsageTables doesnt work]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1814&amp;p=6444#p6444"><![CDATA[
I have done a way to download information from my device simulating keypresses in a text editor. (Like one of the comunity examples)<br />Everything works except for the Spacebar key, which is number 44 or 0x2C.<br />I send in the report a 0 for modifiers and 44 for the key.<br /><br />My HID Descriptor is copyed from HIDKeys.<br /><br /><blockquote class="uncited"><div>//========================================================================== <br />//=========================== AVR-USB Configuration (HID Descriptor) ======= <br />//========================================================================== <br />PROGMEM char usbHidReportDescriptor[35] = { /* USB report descriptor */ <br />    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop) <br />    0x09, 0x06,                    // USAGE (Keyboard) <br />    0xa1, 0x01,                    // COLLECTION (Application) <br />    0x05, 0x07,                    //   USAGE_PAGE (Keyboard) <br />    0x19, 0xe0,                    //   USAGE_MINIMUM (Keyboard LeftControl) <br />    0x29, 0xe7,                    //   USAGE_MAXIMUM (Keyboard Right GUI) <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 (Data,Var,Abs) <br />    0x95, 0x01,                    //   REPORT_COUNT (1) <br />    0x75, 0x08,                    //   REPORT_SIZE (8) <br />    0x25, 0x65,                    //   LOGICAL_MAXIMUM (101) <br />    0x19, 0x00,                    //   USAGE_MINIMUM (Reserved (no event indicated)) <br />    0x29, 0x65,                    //   USAGE_MAXIMUM (Keyboard Application) <br />    0x81, 0x00,                    //   INPUT (Data,Ary,Abs) <br />    0xc0                           // END_COLLECTION <br />};<br /></div></blockquote><br /><br /><br /><br />To add some wear things, in page 53 of USB HID Usage Tables file says as follow:<br /><blockquote class="uncited"><div>The usage type of all key codes is Selectors (Sel), except for the modifier keys Keyboard Left Control<br />(0x224) to Keyboard Right GUI (0x231) which are Dynamic Flags (DV).</div></blockquote><br /><br />BUT &quot;Keyboard Left Control&quot; is 224 in dec and 0xE0 in hex as state in the table. The same for &quot;Keyboard Right GUI&quot;. Also are different from the typical definitions (1 &lt;&lt; 0) and (1 &lt;&lt; 7).<br /><br /><br /><br />Is this my error of interpretation? And 44 is not the number for the spacebar? (Letters and numbers works fine)<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Thu Oct 16, 2008 3:10 am</p><hr />
]]></content>
	</entry>
	</feed>
