mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 18:30:06 +00:00
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.
This commit is contained in:
parent
a94e5d9e68
commit
93596d03ec
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user