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

Function GetGamepadPacket

engine/hid/src/hid.cpp:245–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243 }
244
245 bool GetGamepadPacket(HGamepad gamepad, GamepadPacket* out_packet)
246 {
247 if (gamepad != 0x0 && out_packet != 0x0)
248 {
249 *out_packet = gamepad->m_Packet;
250 gamepad->m_Packet.m_GamepadDisconnected = false;
251 gamepad->m_Packet.m_GamepadConnected = false;
252 return true;
253 }
254 else
255 {
256 return false;
257 }
258 }
259
260 bool GetTouchDevicePacket(HTouchDevice device, TouchDevicePacket* out_packet)
261 {

Callers 4

mainFunction · 0.85
TEST_FFunction · 0.85
EngineUpdateFunction · 0.85
UpdateBindingFunction · 0.85

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.68
EngineUpdateFunction · 0.68