From GPWiki
Jump to: navigation, search

What is DirectX?

If you are unfamiliar with DirectX or DirectInput, please consult the preceding links.

What do I need

To make a program with DirectX you need the following things:

If you have difficulty setting up your compiler with DirectX, consult the SDK, or search the web for help.

Making a simple DirectInput application

Before we make our class, I will show you how DirectInput works. I will do this by showing you a sample application which uses DirectInput to handle keypresses.

First, make a normal windows application with your IDE. Add the following code to the project:

  1. define INITGUID
  1. include <dinput.h>

... to be continued ...