rename an interface
This commit is contained in:
parent
2ee3125724
commit
c681be033d
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace BizHawk.Client.Common
|
|||
}
|
||||
}
|
||||
|
||||
public void SetFromSticky(IStickyController controller)
|
||||
public void SetFromSticky(IStickyAdapter controller)
|
||||
{
|
||||
foreach (var button in Definition.BoolButtons)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue