Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Input_Library v2.00 Component Reference
|
|
[ TDx_Input::EnumDevices() ]
[ next: FindDevice() ]
[ prev: Destroy() ]
public:
virtual bool __fastcall EnumDevices( dword pDeviceType, void* pContext, dword pFlags );
TDX_INPUT::ENUMDEVICES()
[ component method ]
- Description
The
EnumDevices()
method
will
enumerate
the
physical
devices
attached
and
installed
on
the
computer.
Devices
not
physically
present
(plugged
in)
can
be
enumerated
if
drivers
for
the
device
are
present
on
the
system.
Error
values
that
can
be
generated
are:
DIERR_INVALIDPARAM
DIERR_NOTINITIALIZED
- Parameters
DeviceType
The DeviceType parameter defines which device types should be enumerated.
A setting of 0 will enumerate all device types, otherwise use a combination of the values below.
Basic Types
DIDEVTYPE_MOUSE - Enumerate basic mice/trackballs.
DIDEVTYPE_KEYBOARD - Enumerate basic keyboards.
DIDEVTYPE_JOYSTICK - Enumerate basic joysticks.
DIDEVTYPE_DEVICE - Enumerate non standard devices.
Mouse Subtypes
DIDEVTYPEMOUSE_UNKNOWN - Enumerate mice with unknown subtypes.
DIDEVTYPEMOUSE_TRADITIONAL - Enumerate traditional mice.
DIDEVTYPEMOUSE_FINGERSTICK - Enumerate fingersticks.
DIDEVTYPEMOUSE_TOUCHPAD - Enumerate touchpads.
DIDEVTYPEMOUSE_TRACKBALL - Enumerate trackballs.
Keyboard Subtypes
DIDEVTYPEKEYBOARD_UNKNOWN - Enumerate keyboards with unknown subtypes.
DIDEVTYPEKEYBOARD_PCXT - Enumerate IBM PC/XT 83-key keyboards.
DIDEVTYPEKEYBOARD_OLIVETTI - Enumerate Olivetti 102-key keyboards.
DIDEVTYPEKEYBOARD_PCAT - Enumerate IBM PC/AT 84-key keyboards.
DIDEVTYPEKEYBOARD_PCENH - Enumerate IBM PC Enhanced 101/102-key or Microsoft Natural keyboards.
DIDEVTYPEKEYBOARD_NOKIA1050 - Enumerate Nokia 1050 keyboards.
DIDEVTYPEKEYBOARD_NOKIA9140 - Enumerate Nokia 9140 keyboards.
DIDEVTYPEKEYBOARD_NEC98 - Enumerate Japanese NEC PC98 keyboards.
DIDEVTYPEKEYBOARD_NEC98LAPTOP - Enumerate Japanese NEC PC98 laptop keyboards.
DIDEVTYPEKEYBOARD_NEC98106 - Enumerate Japanese NEC PC98 106-key keyboards.
DIDEVTYPEKEYBOARD_JAPAN106 - Enumerate Japanese 106-key keyboards.
DIDEVTYPEKEYBOARD_JAPANAX - Enumerate Japanese AX keyboards.
DIDEVTYPEKEYBOARD_J3100 - Enumerate Japanese J3100 keyboards.
Joystick Subtypes
DIDEVTYPEJOYSTICK_UNKNOWN - Enumerate joysticks with unknown subtypes.
DIDEVTYPEJOYSTICK_TRADITIONAL - Enumerate traditional joysticks.
DIDEVTYPEJOYSTICK_FLIGHTSTICK - Enumerate flightsticks.
DIDEVTYPEJOYSTICK_GAMEPAD - Enumerate gamepads.
DIDEVTYPEJOYSTICK_RUDDER - Enumerate rudders.
DIDEVTYPEJOYSTICK_WHEEL - Enumerate steering wheels.
DIDEVTYPEJOYSTICK_HEADTRACKER - Enumerate headtrackers.
HID
DIDEVTYPE_HID - Enumerate devices that uses the Human Interface Device (HID) protocol.
Context
The Context parameter should hold an application defined 32-bit value to be passed to the callback function each time it is called.
Flags
The Flags parameter defines flags indicating which devices should be enumerated.
The described effect applies when the flag is set.
DIEDFL_ALLDEVICES
All devices installed on the system are to be enumerated.
This is the default setting.
DIEDFL_ATTACHEDONLY
Only devices that are both attached and installed on the system are to be enumerated.
DIEDFL_FORCEFEEDBACK
Only devices that support force feedback are to be enumerated.
DIEDFL_INCLUDEALIASES
Devices that are aliases for other devices are also to be enumerated.
DIEDFL_INCLUDEPHANTOMS
Devices that are phantoms (placeholder devices) are also to be enumerated.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|