DirectInput was created to handle joysticks, gamepads, and such. It also
supports keyboards and mice, but it was never intended for MIDI devices.
You should defintetly not use DirectMusic for MIDI support, as that is a
legacy API.
BTW, the current recommendations for DirectInput are:
-
- Don't use it for keyboard/mouse. Under Windows XP or Vista, this stuff is
emulated anyway and you are better off using Windows messages (WM_MOUSEx,
WM_INPUT, and WM_KEY) instead.
- To support the Xbox 360 Controller for Windows fully, use the XINPUT API.
- If your application requires legacy joystick and other device support, use
DirectInput for that. There is an article in the DirectX SDK (December
2005) that describes how to filter out XINPUT devices from the legacy
DirectInput enumeration.
--
Chuck Walbourn
SDE, Windows Gaming & Graphics
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by Edgars KlepersIs there a way to map a MIDI device, such as a MIDI keyboard or drums, to
DirectInput? If not, what's the suggested way to read inputs from these types
of devices into DirectX Applications?