Remove some more usages of GetInput()
This commit is contained in:
parent
176c306439
commit
3eff547413
|
@ -223,9 +223,10 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
public string InputStrMovie()
|
||||
{
|
||||
var sb = new StringBuilder(Global.MovieSession.Movie.GetInput(Global.Emulator.Frame));
|
||||
sb.Replace(".", " ").Replace("|", "").Replace(" 000, 000", " ");
|
||||
return sb.ToString();
|
||||
var lg = Global.MovieSession.Movie.LogGeneratorInstance();
|
||||
lg.SetSource(Global.MovieSession.MovieControllerAdapter);
|
||||
|
||||
return lg.GenerateInputDisplay();
|
||||
}
|
||||
|
||||
public string InputStrImmediate()
|
||||
|
@ -240,9 +241,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
if (Global.MovieSession.Movie.IsActive)
|
||||
{
|
||||
var sb = new StringBuilder(Global.MovieSession.Movie.GetInput(Global.Emulator.Frame - 1));
|
||||
sb.Replace(".", " ").Replace("|", "").Replace(" 000, 000", " ");
|
||||
return sb.ToString();
|
||||
var lg = Global.MovieSession.Movie.LogGeneratorInstance();
|
||||
lg.SetSource(Global.MovieSession.Movie.GetInputState(Global.Emulator.Frame - 1));
|
||||
return lg.GenerateInputDisplay();
|
||||
}
|
||||
|
||||
return string.Empty;
|
||||
|
|
|
@ -88,13 +88,10 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
if (Global.MovieSession.Movie.IsPlaying && !Global.MovieSession.Movie.IsFinished)
|
||||
{
|
||||
var logEntry = Global.MovieSession.Movie.GetInput(Global.Emulator.Frame - 1);
|
||||
var lg = Global.MovieSession.Movie.LogGeneratorInstance().MovieControllerAdapter;
|
||||
lg.Type = Global.MovieSession.MovieControllerAdapter.Type;
|
||||
lg.SetControllersAsMnemonic(logEntry);
|
||||
var input = Global.MovieSession.Movie.GetInputState(Global.Emulator.Frame - 1);
|
||||
|
||||
var x = lg.GetFloat(Controller + " X Axis");
|
||||
var y = lg.GetFloat(Controller + " Y Axis");
|
||||
var x = input.GetFloat(Controller + " X Axis");
|
||||
var y = input.GetFloat(Controller + " Y Axis");
|
||||
|
||||
var xx = RealToGFX((int)x);
|
||||
var yy = RealToGFX((int)y);
|
||||
|
|
Loading…
Reference in New Issue