What's New in DirectInput
The following are some of the new features in Microsoft® DirectInput®.
- Action mapping
- Microsoft DirectInput for Microsoft DirectX® 8.0 introduces a major new feature: action mapping. Action mapping enables you to establish a connection between input actions and input devices that does not depend on the existence of particular device objects (such as specific buttons or axes). Action mapping simplifies the input loop and reduces the need for custom game drivers, custom device profilers, and custom configuration user interfaces in games.
For more information, see Action Mapping.
- New DirectInput object features
- The DirectInput object is now represented by the DirectInput8 class, which is obtained by using the DirectX8.DirectInputCreate method.
- New keyboard properties
- Two keyboard properties have been added: DIPROP_KEYNAME, which retrieves a localized key name, and DIPROP_SCANCODE, which retrieves the scan code.
- Joystick slider data in rglSlider array
- Joystick slider data which was assigned to the Z axis of a DIJOYSTATE or DIJOYSTATE2 type under earlier DirectX versions will now be found in the slider array of those same types.