| 692 | } |
| 693 | |
| 694 | bool 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 | |
| 713 | void VMManager::WarnAboutUnconfiguredController() |
| 714 | { |
nothing calls this directly
no test coverage detected