Direct Input Sample

This sample is located in \Samples\DirectX\Dinput.

Description
Using the Sample
Key Project Files
Technologies Demonstrated

Description

This sample shows how to use joysticks with the Microsoft® DirectDraw® sample.

Using the Sample

This sample displays the same flashing image as the Direct Draw sample. Use your joystick to move the flashing square around the gray display area.

Key Project Files

DDraw.java

This class creates an instance of the DDrawFrame and adds the DDraw canvas.

DDrawCanvas.java

This class draws the canvas onto a regular Java Canvas.

DDrawFrame.java

This class creates a simple frame to contain the DDrawCanvas.

Technologies Demonstrated

DirectX

© 1999 Microsoft Corporation. All rights reserved. Terms of use.