summaryrefslogtreecommitdiffstats
path: root/src/input_common/main.cpp
diff options
context:
space:
mode:
authorAmeer <aj662@drexel.edu>2020-06-22 05:56:56 +0200
committerAmeer <aj662@drexel.edu>2020-06-22 05:56:56 +0200
commit28046ae3a9cd5e32c7cae1cf64aa005502bf1749 (patch)
treee26cc2a7266fe3709a2417acba6536ee58a77964 /src/input_common/main.cpp
parentfix for sleep using stl (diff)
downloadyuzu-28046ae3a9cd5e32c7cae1cf64aa005502bf1749.tar
yuzu-28046ae3a9cd5e32c7cae1cf64aa005502bf1749.tar.gz
yuzu-28046ae3a9cd5e32c7cae1cf64aa005502bf1749.tar.bz2
yuzu-28046ae3a9cd5e32c7cae1cf64aa005502bf1749.tar.lz
yuzu-28046ae3a9cd5e32c7cae1cf64aa005502bf1749.tar.xz
yuzu-28046ae3a9cd5e32c7cae1cf64aa005502bf1749.tar.zst
yuzu-28046ae3a9cd5e32c7cae1cf64aa005502bf1749.zip
Diffstat (limited to 'src/input_common/main.cpp')
-rw-r--r--src/input_common/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp
index fc399db7e..827a1a30c 100644
--- a/src/input_common/main.cpp
+++ b/src/input_common/main.cpp
@@ -25,12 +25,11 @@ static std::shared_ptr<MotionEmu> motion_emu;
static std::unique_ptr<SDL::State> sdl;
#endif
static std::unique_ptr<CemuhookUDP::State> udp;
-static std::shared_ptr<GCAdapter::Adapter> gcadapter;
static std::shared_ptr<GCButtonFactory> gcbuttons;
static std::shared_ptr<GCAnalogFactory> gcanalog;
void Init() {
- gcadapter = std::make_shared<GCAdapter::Adapter>();
+ std::shared_ptr<GCAdapter::Adapter> gcadapter = std::make_shared<GCAdapter::Adapter>();
gcbuttons = std::make_shared<GCButtonFactory>(gcadapter);
Input::RegisterFactory<Input::ButtonDevice>("gcpad", gcbuttons);
gcanalog = std::make_shared<GCAnalogFactory>(gcadapter);