?/TD> |
Microsoft DirectX 9.0 |
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.
Source: (SDK root)\Samples\C++\DirectInput\ActionMapper
Executable: (SDK root)\Samples\C++\DirectInput\Bin\ActionMapper.exe
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.
The application retrieves action-mapped data in the UpdateInput function by calling the IDirectInputDevice8::GetDeviceData method.