Welcome to
www.tdxlibrary.org
Home of the
t
h
e
T
D
x
_
L
i
b
r
a
r
y
...
"
R
A
D
D
i
r
e
c
t
X
"
for
C++ Builder
...
TDx_Input_Library v2.00 Component Reference
[
TDx_InputDevice
::GetDeviceState() ] [ next:
GetEffectInfo()
] [ prev:
GetDeviceInfo()
]
public:
virtual bool __fastcall GetDeviceState( TDIData* pState );
TD
X_
I
NPUT
D
EVICE::
G
ET
D
EVICE
S
TATE() [ component method ]
Description
The GetDeviceState() method will retrieve the current state of the device.
The cooperative level must be set with
TDx_InputDevice::SetCooperativeLevel()
, the data format must be set with
TDx_InputDevice::SetDataFormat()
and the device
acquired
with
TDx_InputDevice::Acquire()
before the device state can be obtained.
Error values that can be generated are:
DIERR_INPUTLOST
DIERR_INVALIDPARAM
DIERR_NOTACQUIRED
DIERR_NOTINITIALIZED
E_PENDING
Parameters
State
The State parameter references an object for holding the current state of the device.
Most of the time this parameter references a
TDIMouseState
,
TDIMouseState2
,
TDIKeyboardState
,
TDIJoyState
or
TDIJoystate2
component for holding the state information of the predefined data formats.
Otherwise the format of the data will have been previously established using
TDx_InputDevice::SetDataFormat()
.
See Also
TDx_InputDevice::Acquire()
TDx_InputDevice::SetDataFormat()
TDx_InputDevice::SetCooperativeLevel()
Top
If you would like to submit additions or improvements to this page, click:
darren_john_dwyer@hotmail.com
.
Top
Welcome
|
Latest News
|
Tools
|
Demos
|
Tutorials
|
Reference
|
Register
|
Downloads
FAQ
|
Links
|
Site Information
This page is
Copyright
© 2019 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are
Trademarks
of
Borland Corporation
.
DirectX, DirectDraw, Windows, etc are
Trademarks
of
Microsoft Corporation
.