diff options
author | Lioncash <mathew1800@gmail.com> | 2020-07-12 21:43:05 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-07-12 21:43:07 +0200 |
commit | a1dddca4ab83cb63463134db11ed3585d8bd91f1 (patch) | |
tree | ab1d8aeb073b7a1f1fa2530122281b783ed36322 /src/input_common/gcadapter | |
parent | gc_poller: Get rid of undefined behavior in Create() (diff) | |
download | yuzu-a1dddca4ab83cb63463134db11ed3585d8bd91f1.tar yuzu-a1dddca4ab83cb63463134db11ed3585d8bd91f1.tar.gz yuzu-a1dddca4ab83cb63463134db11ed3585d8bd91f1.tar.bz2 yuzu-a1dddca4ab83cb63463134db11ed3585d8bd91f1.tar.lz yuzu-a1dddca4ab83cb63463134db11ed3585d8bd91f1.tar.xz yuzu-a1dddca4ab83cb63463134db11ed3585d8bd91f1.tar.zst yuzu-a1dddca4ab83cb63463134db11ed3585d8bd91f1.zip |
Diffstat (limited to 'src/input_common/gcadapter')
-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 return nullptr; } -Common::ParamPackage GCButtonFactory::GetNextInput() { +Common::ParamPackage GCButtonFactory::GetNextInput() const { Common::ParamPackage params; GCAdapter::GCPadStatus pad; 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: */ std::unique_ptr<Input::ButtonDevice> Create(const Common::ParamPackage& params) override; - Common::ParamPackage GetNextInput(); + Common::ParamPackage GetNextInput() const; /// For device input configuration/polling void BeginConfiguration(); |