MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GetGenericBindingMapping

Method GetGenericBindingMapping

pcsx2/Input/InputManager.cpp:1792–1806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1790}
1791
1792InputManager::GenericInputBindingMapping InputManager::GetGenericBindingMapping(const std::string_view device)
1793{
1794 GenericInputBindingMapping mapping;
1795
1796 if (!GetInternalGenericBindingMapping(device, &mapping))
1797 {
1798 for (u32 i = FIRST_EXTERNAL_INPUT_SOURCE; i < LAST_EXTERNAL_INPUT_SOURCE; i++)
1799 {
1800 if (s_input_sources[i]->IsInitialized() && s_input_sources[i]->GetGenericBindingMapping(device, &mapping))
1801 break;
1802 }
1803 }
1804
1805 return mapping;
1806}
1807
1808bool InputManager::IsInputSourceEnabled(SettingsInterface& si, InputSourceType type)
1809{

Callers

nothing calls this directly

Calls 2

IsInitializedMethod · 0.45

Tested by

no test coverage detected