Virtualpads - flip the read-only flag when a movie changes from read-only to another mode
This commit is contained in:
parent
77a958af8e
commit
f6273f2f92
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue