BizHawk/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/IVirtualPadControl.cs

26 lines
666 B
C#
Raw Normal View History

2014-06-24 16:36:19 +00:00
using BizHawk.Emulation.Common;
namespace BizHawk.Client.EmuHawk
2014-06-22 15:05:37 +00:00
{
public interface IVirtualPadControl
{
/// <summary>
/// Clears the pad and resets it to a logical default
/// </summary>
2014-06-22 15:05:37 +00:00
void Clear();
void UpdateValues();
/// <summary>
/// Sets the state of the control based on the given controller state
/// </summary>
/// <param name="controller">The controller state that the control will be set to</param>
2014-06-24 16:36:19 +00:00
void Set(IController controller);
/// <summary>
2017-05-24 14:07:03 +00:00
/// Gets or sets a value indicating whether or not the user can change the state of the control
/// </summary>
bool ReadOnly { get; set; }
2014-06-22 15:05:37 +00:00
}
}