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

Function GetGamepadButton

engine/hid/src/hid.cpp:346–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344 }
345
346 bool GetGamepadButton(GamepadPacket* packet, uint32_t button)
347 {
348 if (packet != 0x0)
349 return packet->m_Buttons[button / 32] & (1 << (button % 32));
350 else
351 return false;
352 }
353
354 void SetGamepadButton(HGamepad gamepad, uint32_t button, bool value)
355 {

Callers 7

GetDeltaFunction · 0.85
CompScriptOnInputFunction · 0.85
TEST_FFunction · 0.85
AppendGamepadStatusFunction · 0.85
EngineUpdateFunction · 0.85
RunScriptFunction · 0.85
ApplyGamepadModifiersFunction · 0.85

Calls

no outgoing calls

Tested by 3

TEST_FFunction · 0.68
AppendGamepadStatusFunction · 0.68
EngineUpdateFunction · 0.68