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

Function AS_GetLookYAxis

Source/Scripting/angelscript/asfuncs.cpp:395–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395float AS_GetLookYAxis(int controller_id) {
396 PlayerInput* controller = Input::Instance()->GetController(controller_id);
397
398 if (controller == NULL) {
399 return 0.0f;
400 }
401
402 float up_depth = controller->key_down["look_up"].depth;
403 float down_depth = controller->key_down["look_down"].depth;
404 return down_depth - up_depth;
405}
406
407void AS_SetGrabMouse(bool grab) {
408 return Input::Instance()->SetGrabMouse(grab);

Callers

nothing calls this directly

Calls 1

GetControllerMethod · 0.80

Tested by

no test coverage detected