diff options
| author | 2019-03-18 11:26:13 -0400 | |
|---|---|---|
| committer | 2019-03-18 11:40:35 -0400 | |
| commit | 874826b6ddef20f190013f24021d20e0338d5593 (patch) | |
| tree | a8c904b3b04deed81668f070de12a4c43e9b6af5 /src/input_common/sdl/sdl_impl.cpp | |
| parent | Merge pull request #2259 from lioncash/fsp (diff) | |
| download | yuzu-874826b6ddef20f190013f24021d20e0338d5593.tar.gz yuzu-874826b6ddef20f190013f24021d20e0338d5593.tar.xz yuzu-874826b6ddef20f190013f24021d20e0338d5593.zip | |
input_common/sdl: Use a type alias to shorten declaration of GetPollers
Just makes the definitions a little bit more tidy.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index 6e8376549..f44a4a332 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp | |||
| @@ -650,9 +650,8 @@ private: | |||
| 650 | }; | 650 | }; |
| 651 | } // namespace Polling | 651 | } // namespace Polling |
| 652 | 652 | ||
| 653 | std::vector<std::unique_ptr<InputCommon::Polling::DevicePoller>> SDLState::GetPollers( | 653 | SDLState::Pollers SDLState::GetPollers(InputCommon::Polling::DeviceType type) { |
| 654 | InputCommon::Polling::DeviceType type) { | 654 | Pollers pollers; |
| 655 | std::vector<std::unique_ptr<InputCommon::Polling::DevicePoller>> pollers; | ||
| 656 | switch (type) { | 655 | switch (type) { |
| 657 | case InputCommon::Polling::DeviceType::Analog: | 656 | case InputCommon::Polling::DeviceType::Analog: |
| 658 | pollers.emplace_back(std::make_unique<Polling::SDLAnalogPoller>(*this)); | 657 | pollers.emplace_back(std::make_unique<Polling::SDLAnalogPoller>(*this)); |