diff options
| author | 2020-07-22 10:39:53 -0400 | |
|---|---|---|
| committer | 2020-08-26 02:32:32 -0400 | |
| commit | f0fac0c7fb6f7dd9fe81747b3369767c8c9e7d01 (patch) | |
| tree | 4438688a9b9b4bc015985f2df1a731de57fe50db /src/input_common/sdl/sdl.h | |
| parent | Merge pull request #4582 from lioncash/xbyak (diff) | |
| download | yuzu-f0fac0c7fb6f7dd9fe81747b3369767c8c9e7d01.tar.gz yuzu-f0fac0c7fb6f7dd9fe81747b3369767c8c9e7d01.tar.xz yuzu-f0fac0c7fb6f7dd9fe81747b3369767c8c9e7d01.zip | |
Project Mjölnir: Part 1
Co-authored-by: James Rowe <jroweboy@gmail.com>
Co-authored-by: Its-Rei <kupfel@gmail.com>
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 @@ | |||
| 6 | 6 | ||
| 7 | #include <memory> | 7 | #include <memory> |
| 8 | #include <vector> | 8 | #include <vector> |
| 9 | #include "common/param_package.h" | ||
| 9 | #include "input_common/main.h" | 10 | #include "input_common/main.h" |
| 10 | 11 | ||
| 11 | namespace InputCommon::Polling { | 12 | namespace InputCommon::Polling { |
| @@ -22,14 +23,24 @@ public: | |||
| 22 | /// Unregisters SDL device factories and shut them down. | 23 | /// Unregisters SDL device factories and shut them down. |
| 23 | virtual ~State() = default; | 24 | virtual ~State() = default; |
| 24 | 25 | ||
| 25 | virtual Pollers GetPollers(Polling::DeviceType type) = 0; | 26 | virtual Pollers GetPollers(Polling::DeviceType type) { |
| 27 | return {}; | ||
| 28 | } | ||
| 29 | |||
| 30 | virtual std::vector<Common::ParamPackage> GetInputDevices() { | ||
| 31 | return {}; | ||
| 32 | } | ||
| 33 | |||
| 34 | virtual ButtonMapping GetButtonMappingForDevice(const Common::ParamPackage&) { | ||
| 35 | return {}; | ||
| 36 | } | ||
| 37 | virtual AnalogMapping GetAnalogMappingForDevice(const Common::ParamPackage&) { | ||
| 38 | return {}; | ||
| 39 | } | ||
| 26 | }; | 40 | }; |
| 27 | 41 | ||
| 28 | class NullState : public State { | 42 | class NullState : public State { |
| 29 | public: | 43 | public: |
| 30 | Pollers GetPollers(Polling::DeviceType type) override { | ||
| 31 | return {}; | ||
| 32 | } | ||
| 33 | }; | 44 | }; |
| 34 | 45 | ||
| 35 | std::unique_ptr<State> Init(); | 46 | std::unique_ptr<State> Init(); |