This commit is contained in:
adelikat 2020-03-01 16:18:20 -06:00
parent abf0a334ad
commit fb52d3fc5d
1 changed files with 3 additions and 13 deletions

View File

@ -18,10 +18,7 @@ namespace BizHawk.Client.Common
// pass floats solely from the original source
// this works in the code because SourceOr is the autofire controller
public float GetFloat(string name)
{
return Source.GetFloat(name);
}
public float GetFloat(string name) => Source.GetFloat(name);
internal IController Source { get; set; }
internal IController SourceAnd { get; set; }
@ -43,16 +40,12 @@ namespace BizHawk.Client.Common
// pass floats solely from the original source
// this works in the code because SourceOr is the autofire controller
public float GetFloat(string name)
{
return Source.GetFloat(name);
}
public float GetFloat(string name) => Source.GetFloat(name);
internal IController Source { get; set; }
internal IController SourceXor { get; set; }
}
public class ORAdapter : IController
{
public ControllerDefinition Definition => Source.Definition;
@ -65,10 +58,7 @@ namespace BizHawk.Client.Common
// pass floats solely from the original source
// this works in the code because SourceOr is the autofire controller
public float GetFloat(string name)
{
return Source.GetFloat(name);
}
public float GetFloat(string name) => Source.GetFloat(name);
internal IController Source { get; set; }
internal IController SourceOr { get; set; }