1
0
Fork 1
forked from suyu/suyu

Merge pull request #8120 from german77/signal

service: hid: Signal event on AcquireNpadStyleSetUpdateEventHandle
This commit is contained in:
bunnei 2022-03-30 22:45:40 -07:00 committed by GitHub
commit c6aa4ec687
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -878,6 +878,10 @@ void Hid::AcquireNpadStyleSetUpdateEventHandle(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_HID, "called, npad_id={}, applet_resource_user_id={}, unknown={}",
parameters.npad_id, parameters.applet_resource_user_id, parameters.unknown);
// Games expect this event to be signaled after calling this function
applet_resource->GetController<Controller_NPad>(HidController::NPad)
.SignalStyleSetChangedEvent(parameters.npad_id);
IPC::ResponseBuilder rb{ctx, 2, 1};
rb.Push(ResultSuccess);
rb.PushCopyObjects(applet_resource->GetController<Controller_NPad>(HidController::NPad)