diff options
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index 6e8376549..b132d77f5 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp | |||
| @@ -650,9 +650,9 @@ 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; | 655 | |
| 656 | switch (type) { | 656 | switch (type) { |
| 657 | case InputCommon::Polling::DeviceType::Analog: | 657 | case InputCommon::Polling::DeviceType::Analog: |
| 658 | pollers.emplace_back(std::make_unique<Polling::SDLAnalogPoller>(*this)); | 658 | pollers.emplace_back(std::make_unique<Polling::SDLAnalogPoller>(*this)); |
| @@ -660,8 +660,9 @@ std::vector<std::unique_ptr<InputCommon::Polling::DevicePoller>> SDLState::GetPo | |||
| 660 | case InputCommon::Polling::DeviceType::Button: | 660 | case InputCommon::Polling::DeviceType::Button: |
| 661 | pollers.emplace_back(std::make_unique<Polling::SDLButtonPoller>(*this)); | 661 | pollers.emplace_back(std::make_unique<Polling::SDLButtonPoller>(*this)); |
| 662 | break; | 662 | break; |
| 663 | return pollers; | ||
| 664 | } | 663 | } |
| 664 | |||
| 665 | return pollers; | ||
| 665 | } | 666 | } |
| 666 | 667 | ||
| 667 | } // namespace SDL | 668 | } // namespace SDL |