Microsoft DirectX 9.0

ActionBasic Sample


The ActionBasic sample is intended to be an introduction to action mapping. The source code includes a step by step approach to creating an action mapped application.


Source: (SDK root)\Samples\C++\DirectInput\ActionBasic

Executable: (SDK root)\Samples\C++\DirectInput\Bin\ActionBasic.exe

User's Guide

When you start the sample, a window will open displaying a chart that lists the detected devices plotted against the sample game actions. Actions which were not successfully mapped to an object on the device are given a crosshatch-filled cell on the chart. When you trigger a mapped keyboard device or a mapped mouse device, the corresponding cell will be highlighted. Triggered axis actions will also feature an arrow to indicate the axis position.

To view the current action mappings for all the detected devices, click the View Configuration button. This will open the default configuration user interface (UI) managed by Microsoft?DirectInput? These mappings cannot be changed for this sample.

Programming Notes

The ActionBasic sample is intended to be an introduction to the action mapping features of DirectInput. The source code is commented and labeled according to the primary steps to be followed when writing an action mapped application. If you're already familiar with the fundamentals of action mapping, you may want to refer to the ActionMapper Sample, which shows how the framework supplied with this software development kit (SDK) can simplify development.

© 2002 Microsoft Corporation. All rights reserved.