#include <TInputDeviceController_Win.h>
|
virtual TBOOL | Initialise () |
|
TBOOL const | BindToDIDevice (HWND a_mainWindow, LPCDIDEVICEINSTANCEA a_poDeviceInstance, IDirectInputDevice8A *a_poDXInputDevice) |
|
| TDECLARE_CLASS (TInputDeviceController, TInputDevice) |
|
| TInputDeviceController () |
|
| ~TInputDeviceController () |
|
virtual TBOOL | GetDoodadProperties (Doodad a_iDoodad, DoodadProperties &a_rProperties) const override |
|
virtual const TCHAR * | GetButtonFromDoodad (Doodad a_iDoodad) const override |
|
virtual TBOOL | IsDown (Doodad a_iDoodad) const override |
|
virtual void | SetVibration (VIBRATION_ACTUATOR a_eActuator, TFLOAT a_fValue) |
|
virtual TBOOL | WasDown (Doodad a_iDoodad) const |
|
virtual void | Unknown1 ()=0 |
|
virtual TBOOL | Unknown2 () |
|
virtual TINT | ProcessVirtualButtons (EventEmitter &a_rEmitter, float a_fDeltaTime) |
|
| TDECLARE_CLASS (TInputDevice, TObject) |
|
| TInputDevice () |
|
| ~TInputDevice ()=default |
|
virtual TBOOL | Acquire ()=0 |
|
virtual TBOOL | Unacquire ()=0 |
|
virtual void | Release ()=0 |
|
virtual void | Update (TFLOAT deltaTime)=0 |
|
virtual TBOOL | Flush () |
|
virtual TINT | ProcessEvents (EventEmitter &emitter, TFLOAT deltaTime)=0 |
|
virtual TINT | GetButtonCount () const =0 |
|
virtual TINT | GetAxisCount () const =0 |
|
virtual TBOOL | StartRepeat (Doodad a_iDoodad, TFLOAT a_fFirstRepeatTime, TFLOAT a_fRepeatTime) |
|
virtual void | StopRepeat (Doodad a_iDoodad) |
|
virtual void | StopAllRepeats () |
|
virtual TBOOL | IsForceFeedbackDevice () |
|
virtual TINT | GetAxisInt (Doodad a_iDoodad, TINT axis) const =0 |
|
virtual TINT | GetAxisInt2 (Doodad a_iDoodad, TINT axis) const |
|
virtual TFLOAT | GetAxisFloat (Doodad a_iDoodad, TINT axis) const =0 |
|
virtual TFLOAT | GetAxisFloat2 (Doodad a_iDoodad, TINT axis) const |
|
virtual TBOOL | IsEnabled () const =0 |
|
virtual void | ThrowRepeatEvent (EventEmitter &emitter, RepeatInfo *repeatInfo, TFLOAT deltaTime) |
|
TBOOL | IsAcquired () const |
|
void | SetAcquired (TBOOL a_bAcquired) |
|
TInputInterface * | GetInputInterface () |
|
void | SetInputInterface (TInputInterface *a_pInterface) |
|
virtual Toshi::TClass * | GetClass () |
|
virtual void | Delete () |
|
virtual | ~TObject () |
|
TBOOL | IsExactly (TClass *a_pClass) |
|
TBOOL | IsA (TClass *a_pClass) |
|
constexpr | TNode () |
|
constexpr | TNode (const TNode &a_rcNode) |
|
| TNode (TNode &&a_rNode) |
|
T * | Next () const |
|
T * | Prev () const |
|
void | Remove () |
|
void | SetList (TNodeList *list) |
|
TNodeList * | GetList () const |
|
TBOOL | IsLinked () const |
|
Definition at line 7 of file TInputDeviceController_Win.h.
◆ BindToDIDevice()
TBOOL const TInputDXDeviceController::BindToDIDevice |
( |
HWND | a_mainWindow, |
|
|
LPCDIDEVICEINSTANCEA | a_poDeviceInstance, |
|
|
IDirectInputDevice8A * | a_poDXInputDevice ) |
Definition at line 27 of file TInputDeviceController_Win.cpp.
28{
29 TASSERT( a_poDeviceInstance != NULL );
30 TASSERT( a_poDXInputDevice != NULL );
33
34 m_pDXInputDevice = a_poDXInputDevice;
35 m_pDXDiDevCaps = DIDEVCAPS();
36 m_pDXInputDevice->GetCapabilities( &m_pDXDiDevCaps );
37 HRESULT hr = m_pDXInputDevice->SetDataFormat( &c_dfDIJoystick );
38
39 if ( hr != DI_OK )
40 {
42 }
43
45 TTODO(
"field_0x38C = 0" );
47}
static TINT CALLBACK EnumerateObjectCallback(LPCDIDEVICEOBJECTINSTANCEA a_poDeviceInstance, LPVOID a_pData)
virtual TBOOL Initialise()
static TBOOL IsDirectInputController(LPCDIDEVICEINSTANCEA a_poDeviceInstance)
◆ EnumerateObjectCallback()
static TINT CALLBACK TInputDXDeviceController::EnumerateObjectCallback |
( |
LPCDIDEVICEOBJECTINSTANCEA | a_poDeviceInstance, |
|
|
LPVOID | a_pData ) |
|
inlinestatic |
◆ Initialise()
virtual TBOOL TInputDXDeviceController::Initialise |
( |
| ) |
|
|
inlinevirtual |
◆ IsDirectInputController()
TBOOL TInputDXDeviceController::IsDirectInputController |
( |
LPCDIDEVICEINSTANCEA | a_poDeviceInstance | ) |
|
|
static |
Definition at line 12 of file TInputDeviceController_Win.cpp.
13{
14 TASSERT( a_poDeviceInstance != NULL );
16
17 T2String8::Format( fmtStr,
"%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX", a_poDeviceInstance->guidProduct.Data1, a_poDeviceInstance->guidProduct.Data2, a_poDeviceInstance->guidProduct.Data3, a_poDeviceInstance->guidProduct.Data4[ 0 ], a_poDeviceInstance->guidProduct.Data4[ 1 ], a_poDeviceInstance->guidProduct.Data4[ 2 ], a_poDeviceInstance->guidProduct.Data4[ 3 ], a_poDeviceInstance->guidProduct.Data4[ 4 ], a_poDeviceInstance->guidProduct.Data4[ 5 ], a_poDeviceInstance->guidProduct.Data4[ 6 ], a_poDeviceInstance->guidProduct.Data4[ 7 ] );
18
20 {
22 }
23
25}
static TINT Format(TCHAR *a_pcString, TINT size, const TCHAR *a_pcFormat,...)
static const TCHAR * String8FindString(const TCHAR *str, const TCHAR *substr)
The documentation for this class was generated from the following files: