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

Method GetButtonDown

Source/Engine/Input/Gamepad.cpp:104–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104bool Gamepad::GetButtonDown(GamepadButton button, float deadZone) const
105{
106 return GetButtonState(_mappedState, button, deadZone) && !GetButtonState(_mappedPrevState, button, deadZone);
107}
108
109bool Gamepad::GetButtonUp(GamepadButton button, float deadZone) const
110{

Callers 5

GetMouseButtonDownMethod · 0.80
GetGamepadButtonDownMethod · 0.80
UpdateMethod · 0.80
OnUpdateMethod · 0.80
UpdateMethod · 0.80

Calls 1

GetButtonStateFunction · 0.85

Tested by

no test coverage detected