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

Function GetGamepad

engine/hid/src/hid.cpp:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 HGamepad GetGamepad(HContext context, uint8_t index)
69 {
70 if (index < MAX_GAMEPAD_COUNT)
71 return &context->m_Gamepads[index];
72 else
73 return INVALID_GAMEPAD_HANDLE;
74 }
75
76 HKeyboard GetKeyboard(HContext context, uint8_t index)
77 {

Callers 6

mainFunction · 0.85
TEST_FFunction · 0.85
EngineUpdateFunction · 0.85
NewGamepadBindingFunction · 0.85

Calls

no outgoing calls

Tested by 3

TEST_FFunction · 0.68
EngineUpdateFunction · 0.68