<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Code snippet: converting keyboard input to text in XNA</title>
	<atom:link href="http://roy-t.nl/index.php/2010/02/11/code-snippet-converting-keyboard-input-to-text-in-xna/feed/" rel="self" type="application/rss+xml" />
	<link>http://roy-t.nl/index.php/2010/02/11/code-snippet-converting-keyboard-input-to-text-in-xna/</link>
	<description>My programming world</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:12:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tyler</title>
		<link>http://roy-t.nl/index.php/2010/02/11/code-snippet-converting-keyboard-input-to-text-in-xna/comment-page-1/#comment-720</link>
		<dc:creator>Tyler</dc:creator>
		<pubDate>Mon, 11 Oct 2010 14:26:58 +0000</pubDate>
		<guid isPermaLink="false">http://roy-t.nl/?p=269#comment-720</guid>
		<description>Nice code, simple and powerful.
Thanks again!</description>
		<content:encoded><![CDATA[<p>Nice code, simple and powerful.<br />
Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy Triesscheijn</title>
		<link>http://roy-t.nl/index.php/2010/02/11/code-snippet-converting-keyboard-input-to-text-in-xna/comment-page-1/#comment-429</link>
		<dc:creator>Roy Triesscheijn</dc:creator>
		<pubDate>Fri, 09 Apr 2010 15:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://roy-t.nl/?p=269#comment-429</guid>
		<description>Hey Christopher,

Thanks for your comment, that&#039;s some good bugtracking!</description>
		<content:encoded><![CDATA[<p>Hey Christopher,</p>
<p>Thanks for your comment, that&#8217;s some good bugtracking!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Harris</title>
		<link>http://roy-t.nl/index.php/2010/02/11/code-snippet-converting-keyboard-input-to-text-in-xna/comment-page-1/#comment-427</link>
		<dc:creator>Christopher Harris</dc:creator>
		<pubDate>Fri, 09 Apr 2010 03:26:08 +0000</pubDate>
		<guid isPermaLink="false">http://roy-t.nl/?p=269#comment-427</guid>
		<description>Roy,

The code has just a bit of an error. When holding the shift key, any key past the shift keys (LeftShift = 160, RightShift = 161) in the Keys enumeration won&#039;t be typed due to the shift key being the first element in the keys array.

Obviously there&#039;s a few ways around this, but I decided to loop through each key in the list until I found a real displayable character :)

// code as before
for (int i = 0; i &lt; keys.Length; i++)
{
  if (!oldKeyboard.IsKeyDown(keys[i]))
  {
    switch(keys[i])
    {
      ...
    }
  }
}
// code as after

Again, thanks for the code, I hope this helps with the OEM keys issue!</description>
		<content:encoded><![CDATA[<p>Roy,</p>
<p>The code has just a bit of an error. When holding the shift key, any key past the shift keys (LeftShift = 160, RightShift = 161) in the Keys enumeration won&#8217;t be typed due to the shift key being the first element in the keys array.</p>
<p>Obviously there&#8217;s a few ways around this, but I decided to loop through each key in the list until I found a real displayable character <img src='http://roy-t.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>// code as before<br />
for (int i = 0; i &lt; keys.Length; i++)<br />
{<br />
  if (!oldKeyboard.IsKeyDown(keys[i]))<br />
  {<br />
    switch(keys[i])<br />
    {<br />
      &#8230;<br />
    }<br />
  }<br />
}<br />
// code as after</p>
<p>Again, thanks for the code, I hope this helps with the OEM keys issue!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy Triesscheijn</title>
		<link>http://roy-t.nl/index.php/2010/02/11/code-snippet-converting-keyboard-input-to-text-in-xna/comment-page-1/#comment-426</link>
		<dc:creator>Roy Triesscheijn</dc:creator>
		<pubDate>Thu, 08 Apr 2010 11:07:05 +0000</pubDate>
		<guid isPermaLink="false">http://roy-t.nl/?p=269#comment-426</guid>
		<description>No problemo :)</description>
		<content:encoded><![CDATA[<p>No problemo <img src='http://roy-t.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Harris</title>
		<link>http://roy-t.nl/index.php/2010/02/11/code-snippet-converting-keyboard-input-to-text-in-xna/comment-page-1/#comment-424</link>
		<dc:creator>Christopher Harris</dc:creator>
		<pubDate>Thu, 08 Apr 2010 00:28:39 +0000</pubDate>
		<guid isPermaLink="false">http://roy-t.nl/?p=269#comment-424</guid>
		<description>This is exactly what I was looking for. Thanks!</description>
		<content:encoded><![CDATA[<p>This is exactly what I was looking for. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

