DirectInput
This section provides information about the Microsoft DirectInput component of the
Microsoft DirectX application programming interface (API). The DirectInput API is used
to process data from a joystick, or other game controller. The use of DirectInput for
keyboard and mouse input is not recommended, Windows messages should be used
instead (see Taking Advantage of High-Definition Mouse Movement for additional
information). Note that the XInput API has been introduced for Xbox 360 controller
support on Windows, see XInput and DirectInput for additional information.
Roadmap
Information on using DirectInput is presented in the following sections. Use this page
to guide you through the documentation based on your level of experience as a
DirectInput developer.
Introduction to DirectInput. High-level overview of the capabilities of DirectInput and
the steps you'll take to implement it. Start with this section if you're new to
DirectInput.
Understanding DirectInput. Introduction to the objects and interfaces of DirectInput
and how they are related to the Microsoft Windows message system. Read this section
if you're new to DirectInput.
Using DirectInput. Guide to the API. This section contains more detailed conceptual
information than the previous two sections, as well as information about the API
elements you'll use for setting up devices, retrieving data, and implementing force-
feedback effects. If you're a novice, at least familiarize yourself with the contents of
this section. Later, you can refer to topics as you need them. Use this section in
conjunction with the DirectInput C/C++ Reference.
Programming Tips and Tools. Advanced programming topics and a guide to the
DirectInput tools provided with the DirectX software development kit (SDK).
DirectInput C/C++ Reference. Reference information for the API. Use this section
when you need to know the details of an interface, method, structure, macro, or other
element.
© 2010 Microsoft Corporation. All rights reserved.
Send feedback to DxSdkDoc@microsoft.com.
Version: 1962.00
Introduction to DirectInput
DirectInput is an API for input devices including the mouse, keyboard, joystick, and
other game controllers, as well as for force-feedback (input/output) devices.
This topic provides a brief overview of the capabilities of DirectInput and how to set it
up in an application. For a more comprehensive view of how DirectInput works, see
Understanding DirectInput. For a step-by-step guide to using the DirectInput API, see
Using DirectInput.
The Power of DirectInput
Page 1 of 143
DirectInput
2018/5/28
file:///C:/Users/HSB-HL/AppData/Local/Temp/~hh5B37.htm
评论1