diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-07-22 16:39:53 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-08-26 08:32:32 +0200 |
commit | f0fac0c7fb6f7dd9fe81747b3369767c8c9e7d01 (patch) | |
tree | 4438688a9b9b4bc015985f2df1a731de57fe50db /src/input_common/sdl/sdl.h | |
parent | Merge pull request #4582 from lioncash/xbyak (diff) | |
download | yuzu-f0fac0c7fb6f7dd9fe81747b3369767c8c9e7d01.tar yuzu-f0fac0c7fb6f7dd9fe81747b3369767c8c9e7d01.tar.gz yuzu-f0fac0c7fb6f7dd9fe81747b3369767c8c9e7d01.tar.bz2 yuzu-f0fac0c7fb6f7dd9fe81747b3369767c8c9e7d01.tar.lz yuzu-f0fac0c7fb6f7dd9fe81747b3369767c8c9e7d01.tar.xz yuzu-f0fac0c7fb6f7dd9fe81747b3369767c8c9e7d01.tar.zst yuzu-f0fac0c7fb6f7dd9fe81747b3369767c8c9e7d01.zip |
Diffstat (limited to '')
-rw-r--r-- | src/input_common/sdl/sdl.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/input_common/sdl/sdl.h b/src/input_common/sdl/sdl.h index 5306daa70..f3554be9a 100644 --- a/src/input_common/sdl/sdl.h +++ b/src/input_common/sdl/sdl.h @@ -6,6 +6,7 @@ #include <memory> #include <vector> +#include "common/param_package.h" #include "input_common/main.h" namespace InputCommon::Polling { @@ -22,14 +23,24 @@ public: /// Unregisters SDL device factories and shut them down. virtual ~State() = default; - virtual Pollers GetPollers(Polling::DeviceType type) = 0; + virtual Pollers GetPollers(Polling::DeviceType type) { + return {}; + } + + virtual std::vector<Common::ParamPackage> GetInputDevices() { + return {}; + } + + virtual ButtonMapping GetButtonMappingForDevice(const Common::ParamPackage&) { + return {}; + } + virtual AnalogMapping GetAnalogMappingForDevice(const Common::ParamPackage&) { + return {}; + } }; class NullState : public State { public: - Pollers GetPollers(Polling::DeviceType type) override { - return {}; - } }; std::unique_ptr<State> Init(); |