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

@ -24,17 +24,17 @@ namespace InputCommon::SDL {
class State {
public:
/// Unresisters SDL device factories and shut them down.
using Pollers = std::vector<std::unique_ptr<Polling::DevicePoller>>;
/// Unregisters SDL device factories and shut them down.
virtual ~State() = default;
virtual std::vector<std::unique_ptr<InputCommon::Polling::DevicePoller>> GetPollers(
InputCommon::Polling::DeviceType type) = 0;
virtual Pollers GetPollers(Polling::DeviceType type) = 0;
};
class NullState : public State {
public:
std::vector<std::unique_ptr<InputCommon::Polling::DevicePoller>> GetPollers(
InputCommon::Polling::DeviceType type) override {}
Pollers GetPollers(Polling::DeviceType type) override {}
};
std::unique_ptr<State> Init();