MCPcopy Create free account
hub / github.com/defold/defold / GetValue

Function GetValue

engine/input/src/input.cpp:977–984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975 }
976
977 float GetValue(HGamepadBinding binding, dmhash_t action_id)
978 {
979 Action* action = binding->m_Actions.Get(action_id);
980 if (action != 0x0)
981 return action->m_Value;
982 else
983 return 0.0f;
984 }
985
986 bool Pressed(HGamepadBinding binding, dmhash_t action_id)
987 {

Callers 3

CompAnimUpdateFunction · 0.50
UpdateAnimationsFunction · 0.50
TEST_FFunction · 0.50

Calls 1

GetMethod · 0.45

Tested by 1

TEST_FFunction · 0.40