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

Method HasAnyBindingsForPad

pcsx2/VMManager.cpp:694–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694bool VMManager::HasAnyBindingsForPad(const SettingsInterface& si, u32 port)
695{
696 if (port >= Pad::NUM_CONTROLLER_PORTS)
697 return false;
698
699 const std::string section = Pad::GetConfigSection(port);
700 const Pad::ControllerInfo* info = Pad::GetConfigControllerType(si, section.c_str(), port);
701 if (!info || info->type == Pad::ControllerType::NotConnected)
702 return false;
703
704 for (const InputBindingInfo& binding : info->bindings)
705 {
706 if (!si.GetStringList(section.c_str(), binding.name).empty())
707 return true;
708 }
709
710 return false;
711}
712
713void VMManager::WarnAboutUnconfiguredController()
714{

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.45
emptyMethod · 0.45
GetStringListMethod · 0.45

Tested by

no test coverage detected