Browse Source
npad: Remove unused controller variable from OnInit()
This also gets rid of variable shadowing related to the lambda parameter
a little bit below this code as well.
pull/15/merge
Lioncash
7 years ago
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
1 changed files with
3 additions and
2 deletions
-
src/core/hle/service/hid/controllers/npad.cpp
|
|
@ -108,9 +108,10 @@ void Controller_NPad::OnInit() { |
|
|
styleset_changed_event = |
|
|
styleset_changed_event = |
|
|
Kernel::Event::Create(kernel, Kernel::ResetType::OneShot, "npad:NpadStyleSetChanged"); |
|
|
Kernel::Event::Create(kernel, Kernel::ResetType::OneShot, "npad:NpadStyleSetChanged"); |
|
|
|
|
|
|
|
|
if (!IsControllerActivated()) |
|
|
|
|
|
|
|
|
if (!IsControllerActivated()) { |
|
|
return; |
|
|
return; |
|
|
std::size_t controller{}; |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (style.raw == 0) { |
|
|
if (style.raw == 0) { |
|
|
// We want to support all controllers
|
|
|
// We want to support all controllers
|
|
|
style.handheld.Assign(1); |
|
|
style.handheld.Assign(1); |
|
|
|