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

Function GetGamepadConfigFromDeviceName

engine/input/src/input.cpp:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 }
140
141 static GamepadConfig* GetGamepadConfigFromDeviceName(HBinding binding, const uint32_t device_name_hash)
142 {
143 GamepadConfig* config = binding->m_Context->m_GamepadMaps.Get(device_name_hash);
144 if (config == 0x0)
145 {
146 config = binding->m_Context->m_GamepadMaps.Get(UNKNOWN_GAMEPAD_CONFIG_ID);
147 }
148 return config;
149 }
150
151 static GamepadConfig* GetGamepadConfig(HBinding binding, dmHID::HGamepad gamepad, char device_name_out[dmHID::MAX_GAMEPAD_NAME_LENGTH])
152 {

Callers 2

GetGamepadConfigFunction · 0.85
UpdateBindingFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected