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

Method EnumerateMotors

pcsx2/Input/InputManager.cpp:1734–1751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1732}
1733
1734std::vector<InputBindingKey> InputManager::EnumerateMotors()
1735{
1736 std::vector<InputBindingKey> ret;
1737
1738 for (u32 i = FIRST_EXTERNAL_INPUT_SOURCE; i < LAST_EXTERNAL_INPUT_SOURCE; i++)
1739 {
1740 if (s_input_sources[i]->IsInitialized())
1741 {
1742 std::vector<InputBindingKey> devs(s_input_sources[i]->EnumerateMotors());
1743 if (ret.empty())
1744 ret = std::move(devs);
1745 else
1746 std::move(devs.begin(), devs.end(), std::back_inserter(ret));
1747 }
1748 }
1749
1750 return ret;
1751}
1752
1753static void GetKeyboardGenericBindingMapping(std::vector<std::pair<GenericInputBinding, std::string>>* mapping)
1754{

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