1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-28 15:06:31 -05:00

input_common/sdl: Use a type alias to shorten declaration of GetPollers

Just makes the definitions a little bit more tidy.
This commit is contained in:
Lioncash
2019-03-18 11:26:13 -04:00
parent 8dc2f01eae
commit 874826b6dd
3 changed files with 9 additions and 11 deletions

View File

@@ -650,9 +650,8 @@ private:
};
} // namespace Polling
std::vector<std::unique_ptr<InputCommon::Polling::DevicePoller>> SDLState::GetPollers(
InputCommon::Polling::DeviceType type) {
std::vector<std::unique_ptr<InputCommon::Polling::DevicePoller>> pollers;
SDLState::Pollers SDLState::GetPollers(InputCommon::Polling::DeviceType type) {
Pollers pollers;
switch (type) {
case InputCommon::Polling::DeviceType::Analog:
pollers.emplace_back(std::make_unique<Polling::SDLAnalogPoller>(*this));