| 1710 | |
| 1711 | |
| 1712 | std::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 | |
| 1734 | std::vector<InputBindingKey> InputManager::EnumerateMotors() |
| 1735 | { |
nothing calls this directly
no test coverage detected