MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / DInputManager

Method DInputManager

Engine/source/platformWin32/winDirectInput.cpp:42–59  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

40
41//------------------------------------------------------------------------------
42DInputManager::DInputManager()
43{
44 mEnabled = false;
45 mDInputLib = NULL;
46 mDInputInterface = NULL;
47 mJoystickActive = mXInputActive = true;
48 mXInputLib = NULL;
49
50 mfnXInputGetState = NULL;
51 mfnXInputSetState = NULL;
52 dMemset(mXInputStateOld, 0, sizeof(mXInputStateOld));
53 dMemset(mXInputStateNew, 0, sizeof(mXInputStateNew));
54 mXInputStateReset = false;
55 mXInputDeadZoneOn = true;
56
57 for(S32 i=0; i<4; i++)
58 mLastDisconnectTime[i] = -1;
59}
60
61//------------------------------------------------------------------------------
62void DInputManager::init()

Callers

nothing calls this directly

Calls 1

dMemsetFunction · 0.70

Tested by

no test coverage detected