MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / init

Method init

Engine/source/T3D/gameBase/moveManager.cpp:71–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69const Move NullMove;
70
71void MoveManager::init()
72{
73 Con::addVariable("mvForwardAction", TypeF32, &mForwardAction,
74 "Forwards movement speed for the active player.\n"
75 "@ingroup Game");
76 Con::addVariable("mvBackwardAction", TypeF32, &mBackwardAction,
77 "Backwards movement speed for the active player.\n"
78 "@ingroup Game");
79 Con::addVariable("mvUpAction", TypeF32, &mUpAction,
80 "Upwards movement speed for the active player.\n"
81 "@ingroup Game");
82 Con::addVariable("mvDownAction", TypeF32, &mDownAction,
83 "Downwards movement speed for the active player.\n"
84 "@ingroup Game");
85 Con::addVariable("mvLeftAction", TypeF32, &mLeftAction,
86 "Left movement speed for the active player.\n"
87 "@ingroup Game");
88 Con::addVariable("mvRightAction", TypeF32, &mRightAction,
89 "Right movement speed for the active player.\n"
90 "@ingroup Game");
91
92 Con::addVariable("mvFreeLook", TypeBool, &mFreeLook,
93 "Boolean state for if freelook is active or not.\n"
94 "@ingroup Game");
95 Con::addVariable("mvDeviceIsKeyboardMouse", TypeBool, &mDeviceIsKeyboardMouse,
96 "Boolean state for it the system is using a keyboard and mouse or not.\n"
97 "@ingroup Game");
98 Con::addVariable("mvPitch", TypeF32, &mPitch,
99 "Current pitch value, typically applied through input devices, such as a mouse.\n"
100 "@ingroup Game");
101 Con::addVariable("mvYaw", TypeF32, &mYaw,
102 "Current yaw value, typically applied through input devices, such as a mouse.\n"
103 "@ingroup Game");
104 Con::addVariable("mvRoll", TypeF32, &mRoll,
105 "Current roll value, typically applied through input devices, such as a mouse.\n"
106 "@ingroup Game");
107 Con::addVariable("mvPitchUpSpeed", TypeF32, &mPitchUpSpeed,
108 "Upwards pitch speed.\n"
109 "@ingroup Game");
110 Con::addVariable("mvPitchDownSpeed", TypeF32, &mPitchDownSpeed,
111 "Downwards pitch speed.\n"
112 "@ingroup Game");
113 Con::addVariable("mvYawLeftSpeed", TypeF32, &mYawLeftSpeed,
114 "Left Yaw speed.\n"
115 "@ingroup Game");
116 Con::addVariable("mvYawRightSpeed", TypeF32, &mYawRightSpeed,
117 "Right Yaw speed.\n"
118 "@ingroup Game");
119 Con::addVariable("mvRollLeftSpeed", TypeF32, &mRollLeftSpeed,
120 "Left roll speed.\n"
121 "@ingroup Game");
122 Con::addVariable("mvRollRightSpeed", TypeF32, &mRollRightSpeed,
123 "Right roll speed.\n"
124 "@ingroup Game");
125
126 // Dual-analog
127 Con::addVariable( "mvXAxis_L", TypeF32, &mXAxis_L,
128 "Left thumbstick X axis position on a dual-analog gamepad.\n"

Callers 3

onDisconnectMethod · 0.45
readConnectRequestMethod · 0.45

Calls 2

addVariableFunction · 0.85
dSprintfFunction · 0.85

Tested by

no test coverage detected