MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetGamepadButton

Method GetGamepadButton

Source/Engine/Input/Input.cpp:515–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515bool Input::GetGamepadButton(int32 gamepadIndex, GamepadButton button, float deadZone)
516{
517 if (gamepadIndex >= 0 && gamepadIndex < Gamepads.Count())
518 return Gamepads[gamepadIndex]->GetButton(button, deadZone);
519 return false;
520}
521
522bool Input::GetGamepadButtonDown(int32 gamepadIndex, GamepadButton button, float deadZone)
523{

Callers

nothing calls this directly

Calls 2

CountMethod · 0.45
GetButtonMethod · 0.45

Tested by

no test coverage detected