Archived
1
0
Fork 0
forked from Mirror/Ryujinx

Return focus from controller applet after completion (#2218)

* Return focus from controller applet after completion

This fixes controller applet related in Mario Kart 8 Deluxe, in 2 player mode or when opening the applet in character select.

* Return focus for player select
This commit is contained in:
riperiperi 2021-04-17 17:57:03 +01:00 committed by GitHub
parent 84415eaf00
commit dc8c781d7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

@ -105,6 +105,8 @@ namespace Ryujinx.HLE.HOS.Applets
_normalSession.Push(BuildResponse(result));
AppletStateChanged?.Invoke(this, null);
_system.ReturnFocus();
return ResultCode.Success;
}

View file

@ -30,6 +30,8 @@ namespace Ryujinx.HLE.HOS.Applets
AppletStateChanged?.Invoke(this, null);
_system.ReturnFocus();
return ResultCode.Success;
}

View file

@ -330,6 +330,11 @@ namespace Ryujinx.HLE.HOS
}
}
public void ReturnFocus()
{
AppletState.SetFocus(true);
}
public void SimulateWakeUpMessage()
{
AppletState.Messages.Enqueue(MessageInfo.Resume);