diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-24 23:36:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-24 23:36:55 +0200 |
commit | ce2403d97580d5c77ab1826094636a0626977fc5 (patch) | |
tree | ec155e7ab7c680331f9c473aac7e4f8c671e0f87 /src/core | |
parent | Merge pull request #1568 from lioncash/dir (diff) | |
parent | npad: Remove unused controller variable from OnInit() (diff) | |
download | yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar.gz yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar.bz2 yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar.lz yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar.xz yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.tar.zst yuzu-ce2403d97580d5c77ab1826094636a0626977fc5.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index b06e65a77..4b4d1324f 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -108,9 +108,10 @@ void Controller_NPad::OnInit() { styleset_changed_event = Kernel::Event::Create(kernel, Kernel::ResetType::OneShot, "npad:NpadStyleSetChanged"); - if (!IsControllerActivated()) + if (!IsControllerActivated()) { return; - std::size_t controller{}; + } + if (style.raw == 0) { // We want to support all controllers style.handheld.Assign(1); |