MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / AS_GetMoveXAxis

Function AS_GetMoveXAxis

Source/Scripting/angelscript/asfuncs.cpp:213–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213float AS_GetMoveXAxis(int controller_id) {
214 PlayerInput* controller = Input::Instance()->GetController(controller_id);
215
216 if (controller == NULL) {
217 return 0.0f;
218 }
219
220 float left_depth = controller->key_down["left"].depth;
221 float right_depth = controller->key_down["right"].depth;
222 return right_depth - left_depth;
223}
224
225float AS_GetMoveYAxis(int controller_id) {
226 PlayerInput* controller = Input::Instance()->GetController(controller_id);

Callers

nothing calls this directly

Calls 1

GetControllerMethod · 0.80

Tested by

no test coverage detected