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

Function Pressed

engine/input/src/input.cpp:986–993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984 }
985
986 bool Pressed(HGamepadBinding binding, dmhash_t action_id)
987 {
988 Action* action = binding->m_Actions.Get(action_id);
989 if (action != 0x0)
990 return action->m_Pressed;
991 else
992 return false;
993 }
994
995 bool Released(HGamepadBinding binding, dmhash_t action_id)
996 {

Callers 1

TEST_FFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by 1

TEST_FFunction · 0.68