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

Function AS_GetMoveYAxis

Source/Scripting/angelscript/asfuncs.cpp:225–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225float AS_GetMoveYAxis(int controller_id) {
226 PlayerInput* controller = Input::Instance()->GetController(controller_id);
227
228 if (controller == NULL) {
229 return 0.0f;
230 }
231
232 float up_depth = controller->key_down["up"].depth;
233 float down_depth = controller->key_down["down"].depth;
234 return down_depth - up_depth;
235}
236
237static bool AS_GetInputDownFiltered(int controller_id, const std::string& which_key, uint32_t filter) {
238 PlayerInput* controller = Input::Instance()->GetController(controller_id);

Callers

nothing calls this directly

Calls 1

GetControllerMethod · 0.80

Tested by

no test coverage detected