add reset support to libretro, resolves #3482
This commit is contained in:
parent
1fc08e3d95
commit
56d66ca555
|
@ -234,6 +234,11 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
private void FrameAdvancePrep(IController controller)
|
||||
{
|
||||
UpdateInput(controller);
|
||||
|
||||
if (controller.IsPressed("Reset"))
|
||||
{
|
||||
api.retro_reset();
|
||||
}
|
||||
}
|
||||
|
||||
private void FrameAdvancePost(bool render, bool renderSound)
|
||||
|
@ -320,6 +325,8 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
CategoryLabels[buttonName] = CAT_KEYBOARD;
|
||||
}
|
||||
|
||||
BoolButtons.Add("Reset");
|
||||
|
||||
MakeImmutable();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue