<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx</link><description>This is Part 4 of an introductory series on game programming using the Microsoft .NET Framework and managed DirectX 9.0. This article covers the input device portion of DirectX, called DirectInput. Derek Pierson 3Leaf Development Difficulty: Intermediate</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#2357660</link><pubDate>Tue, 01 May 2007 16:53:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2357660</guid><dc:creator>directNoob</dc:creator><description>&lt;p&gt;I am new to directX and as such I have the February 2007 SDK.&lt;/p&gt;
&lt;p&gt;TextureLoader is now deprecated and i was wondering if you could post and alternative for loading textures from bitmaps. &amp;nbsp;I have looked all over and cant get this to work.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#2821553</link><pubDate>Wed, 23 May 2007 22:24:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2821553</guid><dc:creator>Carl</dc:creator><description>&lt;p&gt;I was going along fine,I managed part 3.I don't know how you expect anyone learning to program to be able to create all those classes,write reams of code and correctly edit part 3 to fit part 4.I'ts so typical of tutorials.They start of simple and rapidly become too complicated.There's no other comments on part 4 because nobody's done it.The only people who could do it are proffesional developers,but why would they bother.I was enjoying this tutorial on Direct X and i'm quite dissapointed it's turned out like this. &amp;nbsp;&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#2997081</link><pubDate>Thu, 31 May 2007 04:56:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2997081</guid><dc:creator>Foxman13</dc:creator><description>&lt;p&gt;You can download the source code for the project at the top of the page. All you have to do is model your code after that.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3022986</link><pubDate>Fri, 01 Jun 2007 14:25:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3022986</guid><dc:creator>Bobby</dc:creator><description>&lt;p&gt;I agree with Carl. I not even can do the changes from the old article to this. :/&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3049441</link><pubDate>Sat, 02 Jun 2007 22:32:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3049441</guid><dc:creator>DaveS</dc:creator><description>&lt;p&gt;Got to agree with Carl here. Just had to download the new project as it was impossible to follow the modifications.&lt;/p&gt;
&lt;p&gt;Looking through the new code it all makes sense, but its not really &amp;quot;learnt&amp;quot; as I'm not doing it.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3085952</link><pubDate>Tue, 05 Jun 2007 00:02:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3085952</guid><dc:creator>JJ</dc:creator><description>&lt;p&gt;i agree...i was also following it very fine but got into this problem u explained and now i can no longer follow. i must say that this series of tutorials is damn good, but when they take big jumps then its hard to keep up...i hope they consider it.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3086128</link><pubDate>Tue, 05 Jun 2007 00:11:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3086128</guid><dc:creator>JJ</dc:creator><description>&lt;p&gt;forgot to say that of course you can play with the code that you can download for the tutorials&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3203077</link><pubDate>Sun, 10 Jun 2007 13:41:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3203077</guid><dc:creator>Gareth</dc:creator><description>&lt;p&gt;True I stopped programming by this part (can only do so much in a day!) and I'm downloading the examples at the top of the page and running them...not much point typing out the code in this page in my own project (it won't copy properly when I cut &amp;amp; paste en masse which is annoying) yet I can still understand what the author is going on about. &amp;nbsp;This has some very useful foundations for a fully fledged 3D game - not a bad effort for a tutorial series. &amp;nbsp;My only expereince with 3D engine guides is a cryptic 1000-page text book and broken examples on the provided CD - in comparison this is brilliant!&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3241747</link><pubDate>Tue, 12 Jun 2007 10:22:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3241747</guid><dc:creator>LeoSieben</dc:creator><description>&lt;p&gt;Yes, the articles have jumped vastly ahead. It is my hope to fill in the gap. I'm a professional developer and would personally hate to see anyone get discouraged because of the sudden learning curve. More to come... &lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3257183</link><pubDate>Wed, 13 Jun 2007 00:32:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3257183</guid><dc:creator>Ahmad</dc:creator><description>&lt;p&gt;Man you are doing a really great job here,but this article is way too advanced,you are trying to teach DirectX noobs to develop a game so don't get into the advanced stuff now,i didn't even continue 1/4 of this article,i tried but i don't understand many things.&lt;/p&gt;
&lt;p&gt;and thanks again for the articles&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3285810</link><pubDate>Thu, 14 Jun 2007 12:36:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3285810</guid><dc:creator>Dustin</dc:creator><description>&lt;p&gt;Not true Carl, it's simple, just follow what was written for whatever language you are using. &amp;nbsp;To aid, the code is even given at the top you can use to orient how your code is looking to his. &lt;/p&gt;
&lt;p&gt;Besides, this isn't an introductory tutorial on programming, you should have a very good grasp on basic programming before you go into more advanced tutorials such as DirectX, managing classes is a week1 topic in any intro to x development class, and that's all he's doing at the beginning.&lt;/p&gt;
&lt;p&gt;Also, this is the method that is generally used, you write the base engine first, then you go in and nitpick within that your more specific events, then the UI or whatnot, and it has to slide within certain parts of the engine code that was already written. &amp;nbsp; &amp;nbsp;And reams of code? &amp;nbsp;This is actually very little code compared to what I've seen written for the same program. &amp;nbsp;=\&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3358907</link><pubDate>Sun, 17 Jun 2007 17:38:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3358907</guid><dc:creator>James</dc:creator><description>&lt;p&gt;I'm afraid he's right. The only way I got past this was by downloading the code and looking over it for a while to figure out what everything did.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3436494</link><pubDate>Thu, 21 Jun 2007 05:12:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3436494</guid><dc:creator>Adam</dc:creator><description>&lt;p&gt;Yeah, this part kinda lost me right from the start. For one thing I had problems following what was changed in the code cleanup part. I have downloaded the source code to look at to see whats happened but it going to take me a long time to track everything. This part could have been much better written.&lt;/p&gt;
&lt;p&gt;The code means nothing because it doesn't tell you where each bit should go. Its all out of context.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3500701</link><pubDate>Sun, 24 Jun 2007 18:08:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3500701</guid><dc:creator>Ragnar</dc:creator><description>&lt;p&gt;I don't think your supposed to update the code from earlier stages by following the tutorial. Download the code for each lesson at the top of the page and follow along looking at the changes.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3585405</link><pubDate>Thu, 28 Jun 2007 17:48:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3585405</guid><dc:creator>Silvio Caetano</dc:creator><description>&lt;p&gt;That is true.&lt;/p&gt;
&lt;p&gt;I have program experience (Client/Server applications) with another language and I'm here trying to learn how to Make a games in C# in one Tutorial that is named &amp;quot;Beginning Game Developer&amp;quot;.&lt;/p&gt;
&lt;p&gt;Of course, I can search the methods that you used in example and try to see what do you did in that classes, but you could explain better your changes because it was a large step for someone who are learning.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3669468</link><pubDate>Tue, 03 Jul 2007 13:17:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3669468</guid><dc:creator>Jesse</dc:creator><description>&lt;p&gt;Im the same mind of Carl, the 3 part was still easy and understanable, but this 4 part goes litle bit too hard. And i even have litle bit experiens in programing but still i dont understand this, where should put all thoose statements?&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3684203</link><pubDate>Wed, 04 Jul 2007 13:06:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3684203</guid><dc:creator>Mike G</dc:creator><description>&lt;p&gt;Agree with Carl. All was good in Part 3, then comes part 4! Had to check and make sure I hadn't missed a section (I hadn't). Got too complex too quickly&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3711318</link><pubDate>Thu, 05 Jul 2007 22:58:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3711318</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;Ok, I really agree with Carl. I was getting everything up to this point but then you completely lost me. You start giving lines of code with no indication of where to put it. &lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3732107</link><pubDate>Fri, 06 Jul 2007 20:20:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3732107</guid><dc:creator>Dan</dc:creator><description>&lt;p&gt;i agree with carl, this is stupid. &amp;nbsp;up untill now i was going fine. &amp;nbsp;then you just expect someone who is just learning to manage to create all of those classes and all that code!&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3826488</link><pubDate>Thu, 12 Jul 2007 09:41:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3826488</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;Just wanted to say great tutorial. &amp;nbsp;It gave me exactly the info I needed (only using Direct Input). &amp;nbsp;Got gamepad input up and going in no time.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3841361</link><pubDate>Fri, 13 Jul 2007 07:50:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3841361</guid><dc:creator>Anthony</dc:creator><description>&lt;p&gt;I agree with Carl. &amp;nbsp;The changes from version 3 to version 4 are mentioned as if they are simple changes, but completely altering the structure of the code mandates more specific explanation.&lt;/p&gt;
&lt;p&gt;Specifically, the new 'camera' class refactoring could use quite a bit more explanation.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3850328</link><pubDate>Fri, 13 Jul 2007 19:40:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3850328</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Derek,&lt;/p&gt;
&lt;p&gt;I would have to agree with Carl. This tutorial was going along nicely, and I was able to easily follow everything very well. Once I went to Part IV you lost me with all of your changes.&lt;/p&gt;
&lt;p&gt;&amp;quot;In addition to these general housekeeping changes I added some code that I needed to make the DirectInput portion more interesting.&amp;quot; Nowhere do you note these changes, what changes you made, you just said you did it.&lt;/p&gt;
&lt;p&gt;I have over eight years of programming experience in several languages and even I couldn't follow this section after Part III, so I feel bad for any beginner attempting to learn game programming with this tutorial.&lt;/p&gt;
&lt;p&gt;If you make a tutorial for beginners (even though your difficulty is &amp;quot;intermediate,&amp;quot; your title proclaims &amp;quot;Beginning Game Development&amp;quot;) you need to be more direct and show what needs to be done, not just state it and expect someone to follow.&lt;/p&gt;
&lt;p&gt;If it was best to seperate several functions into classes/files, you should have not only explained that part in the previous lessons, but had the audience program that way since the beginning.&lt;/p&gt;
&lt;p&gt;You've lost my interest in continuing this tutorial, I believe several other people felt the same after reaching this section. What a waste of about an hour of my life that I can't get back.&lt;/p&gt;
&lt;p&gt;I also don't even want to hear about downloading your files to coordinate with your tutorial, that isn't how a tutorial works. A tutorial teaches you step-by-step to reach a specific goal, not tutor you half way then give you the answers so you can reach that goal. That has no learning value.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3966623</link><pubDate>Fri, 20 Jul 2007 05:05:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3966623</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;I agree, I was following along nicely, and even was understanding what was going on. &amp;nbsp;I have done my fair share of programming, and I do it professionally, however; the just basically scrap parts 1-3 and &amp;quot;redo&amp;quot; them is just plainly retarded. &amp;nbsp;This act by the author is the main reason that game companies never hit their expeted time goals.... Is that the real point of this tutorial? &amp;nbsp;To teach advanced developers how to program like the gaming industry, late and over budget????&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3971535</link><pubDate>Fri, 20 Jul 2007 11:24:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3971535</guid><dc:creator>TulipVorlax</dc:creator><description>&lt;p&gt;I agree with last comment because &amp;quot;Drawing the actual skybox uses the techniques we have discussed in the previous articles&amp;quot; is not true. We havent covered loading textures yet.&lt;/p&gt;
&lt;p&gt;See ya.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3972959</link><pubDate>Fri, 20 Jul 2007 12:42:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3972959</guid><dc:creator>Dou</dc:creator><description>&lt;p&gt;I still like this tutorial, although it's a little complicated now. The difficulty is Intermediate,so it's not suitable for beginners. &lt;/p&gt;
&lt;p&gt;I'm a beginer, but I think this tutorial can help me to reach intermediate level.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#3975550</link><pubDate>Fri, 20 Jul 2007 17:07:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3975550</guid><dc:creator>Tass</dc:creator><description>&lt;p&gt;I can agreee with Carl's comments. &lt;/p&gt;
&lt;p&gt;Though I did make it through the code cleanup changes up to &amp;quot;In addition to these general housekeeping changes I added some code that I needed to make the DirectInput portion more interesting.&amp;quot; at which point I throw the toys out of the pram :).&lt;/p&gt;
&lt;p&gt;It would have been nice to have the a copy of the code with the &amp;quot;general housekeeping&amp;quot; changes made but prior to any additions made in this section of the tutorial. Making it possible to follow the changes through the tutorial and have the fun of creating some working code rather than having the completed tutorial presented on a plate.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4138943</link><pubDate>Tue, 31 Jul 2007 03:13:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4138943</guid><dc:creator>Toby</dc:creator><description>&lt;p&gt;I would have to agree with Carl, I was happily going through the tutorials, got through number 3 them BAM, I have no idea what's going on. Saying I was disapointed would be an understatement. &lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4165138</link><pubDate>Wed, 01 Aug 2007 13:31:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4165138</guid><dc:creator>Chen</dc:creator><description>&lt;p&gt; &amp;nbsp;I agree with Carl. There's such a gap between part 3 and part 4. So many new methods is involved here. I think it's better to seperate this chapter and describe in detail.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;I appreciate your articles, but only for Part 1-3. I was baffled here, as a newbie.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4174859</link><pubDate>Wed, 01 Aug 2007 22:06:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4174859</guid><dc:creator>Tony</dc:creator><description>&lt;p&gt;Carl, game programming is not an easy subject, and most people who attempt to learn it with out some key programming background will find it difficult. The author of the artical clearly labeled the difficulty as Intermediate, and not beginner. I suggest you spend some time with VB or C#. get to know OOP. Spend some time with the system.IO class. Learn about GDI+, and the drawing classes. Work with a small database project. Once you have some good practice with .Net this tutorial won't be so bad.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4186916</link><pubDate>Thu, 02 Aug 2007 14:46:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4186916</guid><dc:creator>Marc</dc:creator><description>&lt;p&gt;Carl, with respect, this is *not* a tutorial for anyone that is learning to program.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4195189</link><pubDate>Fri, 03 Aug 2007 01:19:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4195189</guid><dc:creator>Marcos  - Brasil</dc:creator><description>&lt;p&gt;I'm confusing, I don't know which class was created or edited. There is a difficulty to identify the portion of code explained, my suggestion is write the class.method and position of the codes. this tutorial is very interesting, but sin to requires special knowledge. I think that should get &amp;nbsp;organized better.&lt;/p&gt;
&lt;p&gt;I hope than you understand me.&lt;/p&gt;
&lt;p&gt;Obrigado.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4197115</link><pubDate>Fri, 03 Aug 2007 05:14:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4197115</guid><dc:creator>Mustafa</dc:creator><description>&lt;p&gt;Carl, you can download the source codes from the top of this page&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4254606</link><pubDate>Mon, 06 Aug 2007 11:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4254606</guid><dc:creator>chris</dc:creator><description>&lt;p&gt;jepp, it's just as carl said... &lt;/p&gt;
&lt;p&gt;:(&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4373612</link><pubDate>Tue, 14 Aug 2007 01:56:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4373612</guid><dc:creator>mali</dc:creator><description>&lt;p&gt;Nice tutorial for fast solutions.&lt;/p&gt;
&lt;p&gt;Not looking it like handbook.&lt;/p&gt;
&lt;p&gt;Good job!&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4379610</link><pubDate>Tue, 14 Aug 2007 09:10:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4379610</guid><dc:creator>Goki</dc:creator><description>&lt;p&gt;It would be better if the code is commented... at least a brief explanation of what each method does and why.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4416702</link><pubDate>Thu, 16 Aug 2007 18:14:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4416702</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;I have to agree with the above comment, this tutorial series completely changed changed pace and format with this tutorial. I'm slowly managing to understand this tutorial by comparing my code up against the downloaded one, but I don't think that this is the way that someone should be learning something.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4482478</link><pubDate>Mon, 20 Aug 2007 20:00:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4482478</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Sadly, this is where I gave up. Parts 1, 2 and 3 I had managed to do by following the instructions, only compiling the provided code to check mine did the same. But the refactoring etc. made at the start of this part were beyond my abilities to deduce for myself. I tried, but, for example, I didn't know that in order to move the timer to &amp;quot;HiResTimer&amp;quot; I had to declare &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[System.Security.SuppressUnmanagedCodeSecurity] &lt;/p&gt;
&lt;p&gt;[DllImport ( &amp;quot;kernel32&amp;quot; )]&lt;/p&gt;
&lt;p&gt;public static extern bool QueryPerformanceFrequency ( ref long PerformanceFrequency );&lt;/p&gt;
&lt;p&gt;You should provide code from the /start/ of the part, after your refactoring, and various alterations, but /before/ doing the changes talked through in the tutorial. That way people will still be able to work through each section from the code provided. &lt;/p&gt;
&lt;p&gt;Providing the code as it should be at the /end/ of the tutorial is less useful, as it means people can't work along with the instructions, which is presumably the point.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4511200</link><pubDate>Wed, 22 Aug 2007 17:35:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4511200</guid><dc:creator>Dinah</dc:creator><description>&lt;p&gt;I hate to dignify posts such as Carl's but I must regrettably agree. I am a professional dev'er. I first found this series quite a while ago and tried to do it. However, I found the errors impossible to get around. I'm a much better dev'er than I used to be and I've recently decided to dabble in game programming.&lt;/p&gt;
&lt;p&gt;In my most recent attempt at this series, trying to make the transition between parts 3 =&amp;gt; 4 has been particularly troublesome. At the very least, the download code for 4 should show where you should be at the beginning of 4 vs the end. Not just the end result. Way too much is left out. Especially for novices.&lt;/p&gt;
&lt;p&gt;To those struggling with these: keep trying. Although some of the omissions here are frustrating, there's a lot of good info here. Try if you can.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4521660</link><pubDate>Thu, 23 Aug 2007 10:14:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4521660</guid><dc:creator>Salty</dc:creator><description>&lt;p&gt;I agree with Carl. We got along without all those extra classes before, why do we need them now? Especially for a tutorial. We can do that on our own once we understand how to use this stuff and wish to apply it to something that would be more suitable for our own creations. You may be demonstrating proper coding methods, but this is an intermediate tutorial designed for those already familiar with cleaning up code. You should've had the tutorial already planned.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4558104</link><pubDate>Sat, 25 Aug 2007 14:16:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4558104</guid><dc:creator>Seb</dc:creator><description>&lt;p&gt;I have to agree with Carl here, big jump without explaining much for some novices like me...&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4564887</link><pubDate>Sun, 26 Aug 2007 00:40:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4564887</guid><dc:creator>Kurtis</dc:creator><description>&lt;p&gt;Carl is right... this is ridiculous. You made way to massive of a jump from part 3 to part 4. I am totally lost. FYI, I am not a beginning programmer. I am quite competent with c# and I am a full-time web developer. I am, however, very new to DirectX. You can't expect anyone to follow along and then when they get to part 4, you say, &amp;quot;Oh, by the way, I made this massive yet vague list of changes from part 3 to part 4.&amp;quot; You could at least include a base project file for part 4 and then the completed project file for part 4. Tutorial was going great, but you royally screwed up.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4569209</link><pubDate>Sun, 26 Aug 2007 07:10:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4569209</guid><dc:creator>Jack</dc:creator><description>&lt;p&gt;I agree with Carl and I too am disappointed. The tutorial started off explaining everything, where the code goes, but what happened here? &lt;/p&gt;
&lt;p&gt;It begins with&lt;/p&gt;
&lt;p&gt;&amp;quot;I refactored all code that deals with the device in the OnPaint method of the GameEngine class into the Render method. &amp;quot;&lt;/p&gt;
&lt;p&gt;What do you mean by 'refactoring'? What is the 'Render method'?&lt;/p&gt;
&lt;p&gt;And you no longer tell us where the code goes.&lt;/p&gt;
&lt;p&gt;You did a good job so far, please edit this to be like the previous parts.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4608294</link><pubDate>Tue, 28 Aug 2007 12:42:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4608294</guid><dc:creator>Laurens</dc:creator><description>&lt;p&gt;I agree with Carl.&lt;/p&gt;
&lt;p&gt;Matrix worldMatrix = Matrix.Identity;Matrix viewMatrix = cam.View;viewMatrix.M41 = 0.0f;viewMatrix.M42 = 0.0f;viewMatrix.M43 = 0.0f;_device.Transform.View = viewMatrix;_device.Transform.World = worldMatrix;&lt;/p&gt;
&lt;p&gt;Where does cam suddenly come from?&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4615247</link><pubDate>Tue, 28 Aug 2007 19:36:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4615247</guid><dc:creator>Fred</dc:creator><description>&lt;p&gt;Well in my case some keys are not responding (WSAD) and on start I have a message :&lt;/p&gt;
&lt;p&gt;A first chance exception of type 'Microsoft.DirectX.DirectInput.AcquiredException' occurred in Microsoft.DirectX.DirectInput.dll&lt;/p&gt;
&lt;p&gt;To Carl : I believe you have to follow the curse here and download the project. Then you have to learn also about C#.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4653415</link><pubDate>Thu, 30 Aug 2007 22:48:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4653415</guid><dc:creator>KTiger</dc:creator><description>&lt;p&gt;Aren't the normals on _backFaceVertex[0].Nz supposed to go the other way?&lt;/p&gt;
&lt;p&gt;Please look at your SkyBox.cs and you will find this:&lt;/p&gt;
&lt;p&gt; _frontFaceVertex[0].Nz = -1.0f;&lt;/p&gt;
&lt;p&gt;_backFaceVertex[0].Nz = -1.0f;&lt;/p&gt;
&lt;p&gt;And I have to agree with Carl, this is an example of how NOT to write a tutorial (of any kind).&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4689249</link><pubDate>Sat, 01 Sep 2007 18:46:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4689249</guid><dc:creator>Ceri</dc:creator><description>&lt;p&gt;True. How are you supposed to learn any of this stuff if you end up just copy+pasting code from the tutor's download into your own code? There are so many revisions from the preceding lesson to this one that it was an exercise in futility hand coding from the sparse instructions supplied, which is a shame. &lt;/p&gt;
&lt;p&gt;Also some of the changes (like code movements from one class to another) mentioned at the start of this tutorial don't even marry up to code contained in the classes -it's only from checking the source download for this tutorial that you can see where the discrepancies lie. &lt;/p&gt;
&lt;p&gt;Sadly i can't afford to buy a second monitor and gfx card for my computer so i can check and compare the code supplied in the download with my own AND follow this tutorial in a web browser =/&lt;/p&gt;
&lt;p&gt;Hopefully Part V won't be as hard to follow as this....&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4710682</link><pubDate>Sun, 02 Sep 2007 23:52:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4710682</guid><dc:creator>keisal</dc:creator><description>&lt;p&gt;You lost me on this article. I thought the first three articles were great but all the &amp;quot;housekeeping&amp;quot; has me lost in this one. You don't explain how you made any of the changes that you made. I tried figuring it out from the sample code but it doesn't look remotely similar to the code from before. I hope that you add instructions on how to make these changes in the future. After all, if this stuff is so simple that you didn't think we would need help with it then it should be simple to add.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4739708</link><pubDate>Tue, 04 Sep 2007 14:48:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4739708</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;I have to agree with Carl, I was really enjoying the tutorial up until this lesson. I downloaded the source and I was completely lost at what you had done. Sorry if it sounds like I'm moaning at you Derek, thanks for the effort you put into this.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4833072</link><pubDate>Sat, 08 Sep 2007 22:59:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4833072</guid><dc:creator>Al</dc:creator><description>&lt;p&gt;I was doing fine until chapter 3. The code for chapter 4 was rewriten so I had to download. I know the code is organized but this not relevant, important is understand the concept here. So my sugestion is to keep the code simple. Also why the member variables are declared at the end of the class, since everybody does at the top. Open any OO book and you will see the member at the top of the class. Also why the if's are tests backward like if (0 = var1). Same thing is there any reason for that, other that beign different?&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4871005</link><pubDate>Wed, 12 Sep 2007 01:00:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4871005</guid><dc:creator>David Powell</dc:creator><description>&lt;p&gt;Whew! That was a lot to take in. I slightly agree with Carl that the quality of the tutorials are decreasing as the series goes along. But at the same time I have to admit that as I took the time and look over the code carefully and experiement a little I am still not lost. &lt;/p&gt;
&lt;p&gt;I'd like to see these articles again after a few editors and experts got their hands on them. They were very easy to follow up until this one. Keep up the good work!&lt;/p&gt;
&lt;p&gt;One question I have is when you write to the Console where am I supposed to view that output? Is there a console output window in VS that I am missing?&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#4961644</link><pubDate>Mon, 17 Sep 2007 22:48:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4961644</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;I agree that the implicit rewriting of code was overly complex, and that I was hard pressed to carry it out. Finally, I gave in and downloaded the files from the link at the top of the page, and spent my time &amp;quot;glueing&amp;quot; the new files into my existing code. I would encourage anyone else with this issue to do the same, it saves time.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#5125128</link><pubDate>Tue, 25 Sep 2007 20:21:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5125128</guid><dc:creator>Anonymousdude</dc:creator><description>&lt;p&gt;I found this part difficult to follow as well like Carl mentioned.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#5167721</link><pubDate>Thu, 27 Sep 2007 16:30:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5167721</guid><dc:creator>jeffery carlson</dc:creator><description>&lt;p&gt;i've seen this code before why make it look harder then it is. comment the code more here i read about it in a older book its not hard you just make it seem hard but the code is great i like it it helps me convert me visual basic 6.0 code to vb.net 2005 express edition better.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#5205265</link><pubDate>Sun, 30 Sep 2007 06:06:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5205265</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;I agree with Carl. I think this part instantly became complicated, mainly because it didnt tell begineers where to enter the code. I am also disappointed and maybe this part and the rest should be redone.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#5270152</link><pubDate>Thu, 04 Oct 2007 05:02:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5270152</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I am a little confused about the code cleanup perhaps you could explain how to do that more in depth&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#5270153</link><pubDate>Thu, 04 Oct 2007 05:02:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5270153</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I am a little confused about the code cleanup perhaps you could explain how to do that more in depth&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#5394824</link><pubDate>Thu, 11 Oct 2007 01:01:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5394824</guid><dc:creator>acolyte</dc:creator><description>&lt;p&gt;I had to make up stuff as I went along to make this tutorial work. Iam glad the creator of this tutorial is not my professor or I'd be screwed.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#5756205</link><pubDate>Mon, 29 Oct 2007 08:59:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5756205</guid><dc:creator>Rob</dc:creator><description>&lt;p&gt;I actually am a professional programmer and I didn't find the jump at the beginning of this section that helpful. &amp;nbsp;I refactored the code no probs... &amp;nbsp;However, the creation of classes from previous material was a stretch. &amp;nbsp;When I encountered this jump, I just went to the end of this tutorial and started flipping the code. &amp;nbsp;What might be nice is a before and after of the code in each section if you are going to optimize and refactor. &amp;nbsp; All in all, still a pretty good tutorial though.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#5800902</link><pubDate>Wed, 31 Oct 2007 19:44:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5800902</guid><dc:creator>Johan</dc:creator><description>&lt;p&gt;Must agree with Carl, I wrote all code myself and when you start changing alot of stuff I can't follow along anymore. Else it was a good tutorial, but I am giving it up now.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#6073771</link><pubDate>Sun, 11 Nov 2007 01:31:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6073771</guid><dc:creator>Jeremy</dc:creator><description>&lt;p&gt;I have been playing around with directX a lil while now.. And honestly, this material has taught me more about the whole framework in general. And I didn't realize till now how trigonometry played such a big role in all of this. &lt;/p&gt;
&lt;p&gt;In response to Carl, personally, im quite the NOOB, &amp;nbsp;you just need to be willing to experiment with everything (change numbers, delete Classes, try to crash the system :| if that helps.) &lt;/p&gt;
&lt;p&gt;For me, the Matrices were confusing but after a look through the sources provided things start to make sense. It's just mental debugging. Develop some logical sense... Run through the provided source codes in your head. It'll eventually make sense if you get a little confused. &amp;nbsp;Don't be a loser like Johan :P&lt;/p&gt;
&lt;p&gt;In closing, I agree with Rob .. All in all, GOod Tutorial. . ;)&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#6336726</link><pubDate>Sat, 17 Nov 2007 16:56:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6336726</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Dude... I wanna have your babies! I dont know what all these bad comments are about. These tutorials are amazing!! Just made my first little game moving a shuttlecraft around in space, thats right... im a loser, but i bloody love it!&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#6647073</link><pubDate>Mon, 03 Dec 2007 22:55:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6647073</guid><dc:creator>Jerry aka 10pups</dc:creator><description>&lt;p&gt;Does anybody just sit down and type out an app or game and poof it works? &lt;/p&gt;
&lt;p&gt;I am just a beginner but I understand this.&lt;/p&gt;
&lt;p&gt;Summary&lt;/p&gt;
&lt;p&gt;Once again I find myself running out of space before being able to cover all of the items I wanted, but I hope there is enough stuff here to let you experiment on your own. We are going to continuously refine the game in each iteration rather than trying to get it perfect the first time; that is the sprit of Agile development.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#6879179</link><pubDate>Thu, 27 Dec 2007 21:24:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6879179</guid><dc:creator>Verry LongBottom</dc:creator><description>&lt;p&gt;it builds fine but when i try to debug it says line 273 in skybox textureloader is invaliddataexception &lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#7040076</link><pubDate>Wed, 09 Jan 2008 16:17:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7040076</guid><dc:creator>Jonas</dc:creator><description>&lt;P&gt;The tutorial it self is very good and i really appreciate it. The problem is when a lot of stuff is taked for granted, because in the 3 first parts everything was "do this and that because". Now suddenly we have new classes that merely is introduced at all. And the code is of course not that easy to interpret at novice level. But i decided to just copy the skybox and do the other work "manually". I guess you learn better if everything had been explained but still a good tutorial so far!&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Jonas&lt;/P&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#7091007</link><pubDate>Sat, 12 Jan 2008 23:03:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7091007</guid><dc:creator>Jake</dc:creator><description>&lt;p&gt;I get an error in the public Device device; line it says:&lt;/p&gt;
&lt;p&gt;'Device' is an ambiguous reference between 'Microsoft.DirectX.Direct3D.Device' and 'Microsoft.DirectX.DirectInput.Device' (CS0104)&lt;/p&gt;
&lt;p&gt;Why is the 'Device' class in both these namespaces?&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#7164676</link><pubDate>Sun, 20 Jan 2008 00:37:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7164676</guid><dc:creator>akaim</dc:creator><description>&lt;p&gt;I can't download the source file nor write it myself. Can someone help me (have the copy)?&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#7198771</link><pubDate>Tue, 22 Jan 2008 17:33:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7198771</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;@akaim: &amp;nbsp;Download links are at the top of the page, &amp;nbsp;I just tried them and they work.&lt;/p&gt;
</description></item><item><title>Beginning Game Development: Part II - Introduction to DirectX</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#8945406</link><pubDate>Thu, 11 Sep 2008 23:31:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8945406</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;This is Part 2 of an introductory series on game programming using the Microsoft .NET Framework and managed&lt;/p&gt;
</description></item><item><title>Beginning Game Development: Part I – Introduction</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#8945431</link><pubDate>Thu, 11 Sep 2008 23:40:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8945431</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;This is Part 1 of an introductory series on game programming using the Microsoft .NET Framework and managed&lt;/p&gt;
</description></item><item><title>Coding4Fun : Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#8945434</link><pubDate>Thu, 11 Sep 2008 23:41:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8945434</guid><dc:creator>Coding4Fun : Beginning Game Development: Part IV - DirectInput</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx"&gt;http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Coding4Fun : Beginning Game Development: Part VI - Lights, Materials and Terrain</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#8945453</link><pubDate>Thu, 11 Sep 2008 23:47:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8945453</guid><dc:creator>Coding4Fun : Beginning Game Development: Part VI - Lights, Materials and Terrain</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx"&gt;http://blogs.msdn.com/coding4fun/archive/2006/11/09/1044115.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#9305786</link><pubDate>Sun, 11 Jan 2009 15:29:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9305786</guid><dc:creator>p</dc:creator><description>&lt;p&gt;on my first look at tut4, I also agreed with Carl. It looked very intimidating. But then i thought... what the heck. give it a go. Took me a while, but i managed to get it to work (customising my code from the first three tuts to be the same as tut4).&lt;/p&gt;
&lt;p&gt;My advice to you: take ur time and read the code cleanup section slowly and thouroughly. Its not that cryptic as it looks. Dont give up. and try to understand what the code does. not just copy and paste :)&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#9398314</link><pubDate>Thu, 05 Feb 2009 15:25:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9398314</guid><dc:creator>Edward</dc:creator><description>&lt;p&gt;I agree with Carl, but the tutorial is quite useful anyways.&lt;/p&gt;
&lt;p&gt;I am new to DirectX as most of you and also programming in general. I am trying to follow the series with November2008DirectXSDK which does not support managed environment as before as I discovered. However, it is still possible to follow the tutorial, untill now I had trouble only with timer and I wished to share how I was able to get over it. The code is working just the same as the downloaded one - as some say it is impossible to follow the tutorial in this 4th part without dowloading the code.&lt;/p&gt;
&lt;p&gt;Hope it helps:&lt;/p&gt;
&lt;p&gt;using System;&lt;/p&gt;
&lt;p&gt;using System.Collections.Generic;&lt;/p&gt;
&lt;p&gt;using System.Linq;&lt;/p&gt;
&lt;p&gt;using System.Text;&lt;/p&gt;
&lt;p&gt;//ForStopwatch class add:&lt;/p&gt;
&lt;p&gt;using System.Diagnostics;&lt;/p&gt;
&lt;p&gt;namespace BattleTank2008&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;class Timer&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*&amp;quot;Stopwatch.Frequency&amp;quot; is managed equivalent of &amp;nbsp;unmanaged &amp;quot;QueryPerformanceFrequency&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *&amp;quot;Stopwatch.GetTimestamp ( )&amp;quot; is managed equivalent of unmanaged &amp;quot;QueryPerformanceCounter&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *I hope I was able to apply them correctly&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *deltaTime=1000000000d/Stopwatch.Frequency*FrameworkTimer.ElapsedTicks; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *time=1000000000d/Stopwatch.GetTimestamp ( )*FrameworkTimer.ElapsedTicks; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#region Fields&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private static bool isTimerStopped;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private static double ticksPerSecond;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private static double stopTime;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private static double lastElapsedTime;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private static double baseTime;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#endregion&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;static Stopwatch FrameworkTimer = new Stopwatch();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private Timer() { }//No creation&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;static Timer()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;isTimerStopped = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ticksPerSecond = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stopTime = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lastElapsedTime = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;baseTime = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ticksPerSecond = Stopwatch.Frequency;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Returns true if timer stopped&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static bool IsStopped { get { return isTimerStopped; } }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Advance the timer a tenth of a second&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static void Advance()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (Stopwatch.Frequency &amp;lt;= 0) return;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stopTime += ticksPerSecond / 10;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Get the absolute system time&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static double GetAbsoluteTime()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (Stopwatch.Frequency &amp;lt;= 0) return -1.0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Get either the current time or stop time&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;double time = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (stopTime != 0) time = stopTime;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else time = 1000000000d / Stopwatch.GetTimestamp() * FrameworkTimer.ElapsedTicks;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return time / ticksPerSecond;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Get the time that elapsed between GetElapsedTime() calls&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static double GetElapsedTime()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (Stopwatch.Frequency &amp;lt;= 0) return -1.0;//Nothing to do&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Get either the current time or stop time&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;double time = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (stopTime != 0) time = stopTime;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else time = 1000000000d / Stopwatch.GetTimestamp() * FrameworkTimer.ElapsedTicks;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;double elapsedTime = (time - lastElapsedTime) / ticksPerSecond;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lastElapsedTime = time;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return elapsedTime;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Get the current time&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static double GetTime()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (Stopwatch.Frequency &amp;lt;= 0) return -1.0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Get either the current time or stop time&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;double time = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (stopTime != 0) time = stopTime;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else time = 1000000000d / Stopwatch.GetTimestamp() * FrameworkTimer.ElapsedTicks;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return (time - baseTime) / ticksPerSecond;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Reset the timer&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static void Reset()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (Stopwatch.Frequency &amp;lt;= 0) return;//Nothing to do&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Get either the current time or stop time&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;double time = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (stopTime != 0) time = stopTime;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else time = 1000000000d / Stopwatch.GetTimestamp() * FrameworkTimer.ElapsedTicks;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;baseTime = time;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lastElapsedTime = time;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stopTime = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;isTimerStopped = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Start the timer&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static void Start()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (Stopwatch.Frequency &amp;lt;= 0) return;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Get either the current time or stop time&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;double time = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (stopTime != 0) time = stopTime;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else time = 1000000000d / Stopwatch.GetTimestamp() * FrameworkTimer.ElapsedTicks;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (isTimerStopped) baseTime += time - stopTime;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stopTime = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lastElapsedTime = time;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;isTimerStopped = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Stop or pause the timer&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static void Stop()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (Stopwatch.Frequency &amp;lt;= 0) return;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!isTimerStopped)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Get either the current time or stop time&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;double time = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (stopTime != 0) time = stopTime;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else time = 1000000000d / Stopwatch.GetTimestamp() * FrameworkTimer.ElapsedTicks;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stopTime = time;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lastElapsedTime = time;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;isTimerStopped = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#9507666</link><pubDate>Wed, 25 Mar 2009 18:30:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9507666</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Carl &lt;/p&gt;
&lt;p&gt;I would have to agree with you. &amp;nbsp; Part I, II, and III were good. &amp;nbsp;Good explanations, good explaining what the code does and where it goes and more, But when I hit part four I was thrown way off.&lt;/p&gt;
&lt;p&gt;In the download sample there's classes we never made and in the tutorial it never went over any off it. &amp;nbsp;Also it give code snippets but don't explain where it goes.&lt;/p&gt;
&lt;p&gt;The tutorial just went down hill fast. &amp;nbsp;I am not new to developing web or desktop apps but I am new to game development and direct X. &amp;nbsp;So I would like a more clearer explanation of how this all works and ties in together.&lt;/p&gt;</description></item><item><title>re: Beginning Game Development: Part IV - DirectInput</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/03/940908.aspx#9893829</link><pubDate>Thu, 10 Sep 2009 22:24:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9893829</guid><dc:creator>Dave</dc:creator><description>&lt;P&gt;This is actually pretty sweet how it takes those 6 simple images and blends them all together. Pain in the butt with these ambiguous names spaces in the DirectX libraries but I figured it out. Saaaawweeeet! &amp;nbsp;On to part 5! &amp;nbsp; The tutorial is pretty good actually but you definately need some experience with debugging to find the problems. I'm still using the August 2007 SDK with visual studio 2003 and everything seems to work. It's still really complicated to grasp how the actual functions work with all the coordinates that have to be manually added. Might be a good idea to memorize what each of these variables are. Also, what is the point to using an underscore (_) &amp;nbsp;at the beginning of all these objects?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_frontFaceVertex(0).X = -100.0F&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_frontFaceVertex(0).Y = 100.0F&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_frontFaceVertex(0).Z = 100.0F&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_frontFaceVertex(0).Tu = 0.0F&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_frontFaceVertex(0).Tv = 0.0F&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_frontFaceVertex(0).Nx = 0.0F&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_frontFaceVertex(0).Ny = 0.0F&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_frontFaceVertex(0).Nz = -1.0F&lt;/P&gt;</description></item></channel></rss>