O'Reilly logo

3D Game Development with Microsoft Silverlight 3 Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—adapting a joystick manager class

It is time to adapt the wrapper for joystick style devices in order to use it in our XBAP WPF application.

Tip

By default, Visual Studio configures an XBAP WPF application to run as a partial trust application. We are going to change that in order to have access to DirectInput. However, this is not a recommended practice. You should only use it when working with other security resources as certificates.

  1. Open the 3DInvadersXBAP project.
  2. Select Project | Add Reference... and select Microsoft.DirectX.DirectInput. Then, click on OK.
  3. Now, the project will list the reference to the aforementioned DLL in the Solution Explorer.
  4. Right-click on 3DInvadersXBAP (the main project) in the Solution Explorer and select ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required