We are going to use DirectInput to manage the capture of the keyboard state, in the RandomchaosDX113DUtility.h header file we are going to add the following include
The first function will be the one used to initialize the keyboard
To fix this we open up the project properties, and add dinput8.lib and dxguid.lib as we did before with d3d11.lib
We can now run the application without compile.linker errors, hitting the Escape key should result in the window closing.
In my next post Ill look at creating a camera class, using this keyboard input mechanism to control it and also render some simple geometry.
After that I am going to look at putting some sort of framework in place, me just writing stuff at random does not give a clear picture, so after we have a camera and have rendered something, we will look at creating something like the Game class we have in XNA, a GraphicsDevice class, SpriteBatch (I know Shawn has some good stuff for this) and, dare I say it, something like Components :)
As ever, comments are more than welcome..