diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-21 05:20:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-21 05:20:49 +0100 |
commit | 839c0f829b109da8e7c69fe17dd5b054b54a12ac (patch) | |
tree | 9b073f88df08681710d89ebd46de1c1b2d79e47a /src/input_common/sdl/sdl.h | |
parent | common/bit_util: Fix bad merge duplicating the copy constructor (diff) | |
parent | input_common/sdl: Correct return values within implementations of GetPollers() (diff) | |
download | yuzu-839c0f829b109da8e7c69fe17dd5b054b54a12ac.tar yuzu-839c0f829b109da8e7c69fe17dd5b054b54a12ac.tar.gz yuzu-839c0f829b109da8e7c69fe17dd5b054b54a12ac.tar.bz2 yuzu-839c0f829b109da8e7c69fe17dd5b054b54a12ac.tar.lz yuzu-839c0f829b109da8e7c69fe17dd5b054b54a12ac.tar.xz yuzu-839c0f829b109da8e7c69fe17dd5b054b54a12ac.tar.zst yuzu-839c0f829b109da8e7c69fe17dd5b054b54a12ac.zip |
Diffstat (limited to 'src/input_common/sdl/sdl.h')
-rw-r--r-- | src/input_common/sdl/sdl.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/input_common/sdl/sdl.h b/src/input_common/sdl/sdl.h index 02a8d2e2c..d7f24c68a 100644 --- a/src/input_common/sdl/sdl.h +++ b/src/input_common/sdl/sdl.h @@ -24,17 +24,19 @@ 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 { + return {}; + } }; std::unique_ptr<State> Init(); |