What's New in DirectInput

DirectX8

Microsoft DirectX 8.1 (C++)

What's New in DirectInput

New Features for DirectInput 8.1

Microsoft® DirectX® 8.1 is a major release primarily for DirectX graphics. The improvements for Microsoft DirectInput® are primarily performance enhancements.

To find out more about the new features in DirectX, see What's New in DirectX 8.1.

New Features for DirectInput 8.0

The following are some of the new features in DirectInput.

Action mapping
DirectInput for 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 IDirectInput8 interface. A new helper function, DirectInput8Create, creates the object and retrieves this interface. IDirectInput8 has a new CLSID and cannot be obtained by calling QueryInterface on an interface to objects of the class CLSID_DirectInput used in earlier DirectX versions.
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 that was assigned to the z-axis of a DIJOYSTATE or DIJOYSTATE2 structure under earlier DirectX versions will now be found in the rglSlider array of those same structures.