service: hid: Create appropriate hid resources

This commit is contained in:
Narr the Reg
2023-11-17 11:46:26 -06:00
committed by german77
parent 8da5bd27e9
commit cff2d0e19e
36 changed files with 1634 additions and 1424 deletions

View File

@ -68,10 +68,7 @@ u64 StandardVmCallbacks::HidKeysDown() {
return 0;
}
const auto press_state =
applet_resource
->GetController<Service::HID::Controller_NPad>(Service::HID::HidController::NPad)
.GetAndResetPressState();
const auto press_state = applet_resource->GetNpad()->GetAndResetPressState();
return static_cast<u64>(press_state & HID::NpadButton::All);
}