rename an interface

This commit is contained in:
adelikat 2020-07-03 12:59:10 -05:00
parent 2ee3125724
commit c681be033d
5 changed files with 8 additions and 8 deletions

View File

@ -6,12 +6,12 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Client.Common
{
public interface IStickyController : IInputAdapter
public interface IStickyAdapter : IInputAdapter
{
bool IsSticky(string button);
}
public class StickyXorAdapter : IStickyController
public class StickyXorAdapter : IStickyAdapter
{
public ControllerDefinition Definition => Source.Definition;
@ -107,7 +107,7 @@ namespace BizHawk.Client.Common
}
}
public class AutoFireStickyXorAdapter : IStickyController, IInputAdapter
public class AutoFireStickyXorAdapter : IStickyAdapter, IInputAdapter
{
public ControllerDefinition Definition => Source.Definition;

View File

@ -51,7 +51,7 @@ namespace BizHawk.Client.Common
public IInputAdapter MovieIn { private get; set; }
public IInputAdapter MovieOut { get; } = new CopyControllerAdapter();
public IStickyController StickySource { get; set; }
public IStickyAdapter StickySource { get; set; }
public IMovieController MovieController { get; private set; } = new Bk2Controller("", NullController.Instance.Definition);

View File

@ -59,7 +59,7 @@ namespace BizHawk.Client.Common
}
}
public void SetFromSticky(IStickyController controller)
public void SetFromSticky(IStickyAdapter controller)
{
foreach (var button in Definition.BoolButtons)
{

View File

@ -10,10 +10,10 @@ namespace BizHawk.Client.Common
void SetFrom(IController source);
/// <summary>
/// Latches to the given <see cref="IStickyController" />
/// Latches to the given <see cref="IStickyAdapter" />
/// For buttons it latches autohold state, for analogs it latches mid value.
/// </summary>
void SetFromSticky(IStickyController controller);
void SetFromSticky(IStickyAdapter controller);
/// <summary>
/// Sets the controller to the state represented by the given mnemonic string

View File

@ -25,7 +25,7 @@ namespace BizHawk.Client.Common
/// <summary>
/// Provides a source for sticky controls ot use when recording
/// </summary>
IStickyController StickySource { get; set; }
IStickyAdapter StickySource { get; set; }
/// <summary>
/// Represents the input source that is fed to