rename an interface
This commit is contained in:
parent
2ee3125724
commit
c681be033d
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue