Merge pull request #1564 from lioncash/npad

npad: Remove unused controller variable from OnInit()
master
bunnei 2018-10-24 17:36:55 +07:00 committed by GitHub
commit ce2403d975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

@ -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);