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

Method EnumerateDevices

pcsx2/Input/InputManager.cpp:1712–1732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1710
1711
1712std::vector<std::pair<std::string, std::string>> InputManager::EnumerateDevices()
1713{
1714 std::vector<std::pair<std::string, std::string>> ret;
1715
1716 ret.emplace_back("Keyboard", "Keyboard");
1717 ret.emplace_back("Mouse", "Mouse");
1718
1719 for (u32 i = FIRST_EXTERNAL_INPUT_SOURCE; i < LAST_EXTERNAL_INPUT_SOURCE; i++)
1720 {
1721 if (s_input_sources[i]->IsInitialized())
1722 {
1723 std::vector<std::pair<std::string, std::string>> devs(s_input_sources[i]->EnumerateDevices());
1724 if (ret.empty())
1725 ret = std::move(devs);
1726 else
1727 std::move(devs.begin(), devs.end(), std::back_inserter(ret));
1728 }
1729 }
1730
1731 return ret;
1732}
1733
1734std::vector<InputBindingKey> InputManager::EnumerateMotors()
1735{

Callers

nothing calls this directly

Calls 4

IsInitializedMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected