Microsoft DirectX 8.1 (C++)

ActionMapper Sample

Description

The ActionMapper sample program demonstrates the retrieval of action-mapped data. It also enables reconfiguration of the keyboard, mouse, and other controller action mappings through the user interface.

Path

Source: (SDK root)\Samples\Multimedia\DirectInput\ActionMapper

Executable: (SDK root)\Samples\Multimedia\DirectInput\Bin\ActionMapper.exe

User's Guide

When you run the ActionMapper sample, a window opens where you can watch the input state change as you press keys or click the mouse button. The World State tells you where you are located in the two-dimensional grid space. If you click Configure Input, a window opens where you can change the keys that control various options such as moving forward or backward or firing your weapon. Click OK to return to the World State window.

Programming Notes

The application retrieves action-mapped data in the UpdateInput function by calling the IDirectInputDevice8::GetDeviceData method.