Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Input_Library v2.00 Component Reference
|
|
[ TDx_InputDevice::SetDataFormat() ]
[ next: SetEventNotification() ]
[ prev: SetCooperativeLevel() ]
public:
virtual bool __fastcall SetDataFormat( TDIData* pDataFormat );
TDX_INPUTDEVICE::SETDATAFORMAT()
[ component method ]
- Description
The
SetDataFormat()
method
will
set
the
device's
data
format.
Note:
This
method
is
different
in
use
to
it's
sdk
equivalent,
in
that
you
pass
in
a
TDIData*
instead
of
a
global
structure,
which
means
you
can
supply
any
component
derived
from
TDIData,
the
pre-defined
TDIKeyboardState,
TDIMouseState,
TDIMouseState2,
TDIJoyState,
TDIJoyState2
components
and
the
TDIDataFormat
component
for
custom
configurations.
After
this
method
is
called
with
any
of
the
predefined
components,
call
the
TDx_InputDevice::GetDeviceState()
method
and
pass
in
the
same
component,
otherwise
an
error
may
occur.
You
should
only
need
to
set
a
device's
data
format
once,
and
note
that
the
data
format
cannot
be
changed
while
the
device
is
acquired.
Error
Values
that
can
be
generated
are:
DIERR_ACQUIRED
DIERR_INVALIDPARAM
DIERR_NOTINITIALIZED
- Parameters
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|