CONST_DI8DEVICETYPE
Used to identify input device classes and types. One of these constants is passed as the deviceType parameter to the DirectInput8.GetDIDevices method to specify the class or type to enumerate. A packed value representing the device type and subtype is returned by the DirectInputDeviceInstance8.GetDevType method and in the lDevType member of the DIDEVCAPS type returned by DirectInputDevice8.GetCapabilities.
Enum CONST_DI8DEVICETYPE
DI8DEVCLASS_ALL = 0
DI8DEVCLASS_DEVICE = 1
DI8DEVCLASS_GAMECTRL = 4
DI8DEVCLASS_KEYBOARD = 3
DI8DEVCLASS_POINTER = 2
DI8DEVTYPE_1STPERSON = 24 (&H18)
DI8DEVTYPE_DEVICE = 17 (&H11)
DI8DEVTYPE_DEVICECTRL = 25 (&H19)
DI8DEVTYPE_DRIVING = 22 (&H16)
DI8DEVTYPE_FLIGHT = 23 (&H17)
DI8DEVTYPE_GAMEPAD = 21 (&H15)
DI8DEVTYPE_JOYSTICK = 20 (&H14)
DI8DEVTYPE_KEYBOARD = 19 (&H13)
DI8DEVTYPE_MOUSE = 18 (&H12)
DI8DEVTYPE_REMOTE = 27 (&H1B)
DI8DEVTYPE_SCREENPOINTER = 26 (&H1A)
DI8DEVTYPE_SUPPLEMENTAL = 28 (&H1C)
End Enum
Constants
- DI8DEVCLASS_ALL
- All devices.
- DI8DEVCLASS_DEVICE
- All devices that do not fall into another class.
- DI8DEVCLASS_GAMECTRL
- All game controllers.
- DI8DEVCLASS_KEYBOARD
- All keyboards. Equivalent to DI8DEVTYPE_KEYBOARD.
- DI8DEVCLASS_POINTER
- All devices of type DI8DEVTYPE_MOUSE and DI8DEVTYPE_SCREENPOINTER.
- DI8DEVTYPE_1STPERSON
- First-person action game device.
- DI8DEVTYPE_DEVICE
- Device that does not fall into another category.
- DI8DEVTYPE_DEVICECTRL
- Input device used to control another type of device from within the context of the application.
- DI8DEVTYPE_DRIVING
- Device for steering.
- DI8DEVTYPE_FLIGHT
- Controller for flight simulation.
- DI8DEVTYPE_GAMEPAD
- Gamepad.
- DI8DEVTYPE_JOYSTICK
- Joystick.
- DI8DEVTYPE_KEYBOARD
- Keyboard or keyboard-like device.
- DI8DEVTYPE_MOUSE
- A mouse or mouse-like device (such as a trackball).
- DI8DEVTYPE_REMOTE
- Remote-control device.
- DI8DEVTYPE_SCREENPOINTER
- Screen pointer.
- DI8DEVTYPE_SUPPLEMENTAL
- Specialized device with functionality unsuitable for the main control of an application, such as pedals used with a wheel.
See Also
CONST_DI8DEVICESUBTYPE