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 namespace BizHawk.Client.Common
{ {
public interface IStickyController : IInputAdapter public interface IStickyAdapter : IInputAdapter
{ {
bool IsSticky(string button); bool IsSticky(string button);
} }
public class StickyXorAdapter : IStickyController public class StickyXorAdapter : IStickyAdapter
{ {
public ControllerDefinition Definition => Source.Definition; 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; public ControllerDefinition Definition => Source.Definition;

View File

@ -51,7 +51,7 @@ namespace BizHawk.Client.Common
public IInputAdapter MovieIn { private get; set; } public IInputAdapter MovieIn { private get; set; }
public IInputAdapter MovieOut { get; } = new CopyControllerAdapter(); 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); 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) foreach (var button in Definition.BoolButtons)
{ {

View File

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

View File

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