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

Function GetGamepadHat

engine/hid/src/hid.cpp:365–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 }
364
365 bool GetGamepadHat(GamepadPacket* packet, uint32_t hat, uint8_t* out_hat_value)
366 {
367 if (packet != 0x0)
368 {
369 *out_hat_value = packet->m_Hat[hat];
370 return true;
371 } else {
372 return false;
373 }
374 }
375
376 void SetGamepadAxis(HGamepad gamepad, uint32_t axis, float value)
377 {

Callers 3

CompScriptOnInputFunction · 0.85
RunScriptFunction · 0.85
ApplyGamepadModifiersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected