Virtualpads - flip the read-only flag when a movie changes from read-only to another mode

This commit is contained in:
adelikat 2020-07-19 11:12:38 -05:00
parent 77a958af8e
commit f6273f2f92
1 changed files with 1 additions and 2 deletions

View File

@ -146,10 +146,10 @@ namespace BizHawk.Client.EmuHawk
}
Pads.ForEach(p => p.SetPrevious(null)); // Not the cleanest way to clear this every frame
Readonly = MovieSession.Movie.IsPlaying();
if (MovieSession.Movie.IsPlaying())
{
Readonly = true;
var currentInput = CurrentInput();
if (currentInput != null)
{
@ -160,7 +160,6 @@ namespace BizHawk.Client.EmuHawk
{
var previousFrame = PreviousFrame();
Pads.ForEach(p => p.SetPrevious(previousFrame));
Readonly = false;
}
if (!Readonly && !StickyPads && !MouseButtons.HasFlag(MouseButtons.Left))