diff options
| author | 2020-07-12 15:43:05 -0400 | |
|---|---|---|
| committer | 2020-07-12 15:43:07 -0400 | |
| commit | a1dddca4ab83cb63463134db11ed3585d8bd91f1 (patch) | |
| tree | ab1d8aeb073b7a1f1fa2530122281b783ed36322 /src | |
| parent | gc_poller: Get rid of undefined behavior in Create() (diff) | |
| download | yuzu-a1dddca4ab83cb63463134db11ed3585d8bd91f1.tar.gz yuzu-a1dddca4ab83cb63463134db11ed3585d8bd91f1.tar.xz yuzu-a1dddca4ab83cb63463134db11ed3585d8bd91f1.zip | |
gc_poller: Mark GCButtonFactory::GetNextInput() as const
This doesn't modify class instance state.
Diffstat (limited to 'src')
| -rw-r--r-- | src/input_common/gcadapter/gc_poller.cpp | 2 | ||||
| -rw-r--r-- | src/input_common/gcadapter/gc_poller.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/gcadapter/gc_poller.cpp b/src/input_common/gcadapter/gc_poller.cpp index d9296c496..bddfa102f 100644 --- a/src/input_common/gcadapter/gc_poller.cpp +++ b/src/input_common/gcadapter/gc_poller.cpp | |||
| @@ -100,7 +100,7 @@ std::unique_ptr<Input::ButtonDevice> GCButtonFactory::Create(const Common::Param | |||
| 100 | return nullptr; | 100 | return nullptr; |
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | Common::ParamPackage GCButtonFactory::GetNextInput() { | 103 | Common::ParamPackage GCButtonFactory::GetNextInput() const { |
| 104 | Common::ParamPackage params; | 104 | Common::ParamPackage params; |
| 105 | GCAdapter::GCPadStatus pad; | 105 | GCAdapter::GCPadStatus pad; |
| 106 | auto& queue = adapter->GetPadQueue(); | 106 | auto& queue = adapter->GetPadQueue(); |
diff --git a/src/input_common/gcadapter/gc_poller.h b/src/input_common/gcadapter/gc_poller.h index e96af7d51..0527f328f 100644 --- a/src/input_common/gcadapter/gc_poller.h +++ b/src/input_common/gcadapter/gc_poller.h | |||
| @@ -25,7 +25,7 @@ public: | |||
| 25 | */ | 25 | */ |
| 26 | std::unique_ptr<Input::ButtonDevice> Create(const Common::ParamPackage& params) override; | 26 | std::unique_ptr<Input::ButtonDevice> Create(const Common::ParamPackage& params) override; |
| 27 | 27 | ||
| 28 | Common::ParamPackage GetNextInput(); | 28 | Common::ParamPackage GetNextInput() const; |
| 29 | 29 | ||
| 30 | /// For device input configuration/polling | 30 | /// For device input configuration/polling |
| 31 | void BeginConfiguration(); | 31 | void BeginConfiguration(); |