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
|
|
|
|
|
{
|
2014-06-25 17:26:07 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Clears the pad and resets it to a logical default
|
|
|
|
|
/// </summary>
|
2014-06-22 15:05:37 +00:00
|
|
|
|
void Clear();
|
2014-06-25 17:26:07 +00:00
|
|
|
|
|
2014-07-26 17:11:47 +00:00
|
|
|
|
void UpdateValues();
|
|
|
|
|
|
2014-06-25 17:26:07 +00:00
|
|
|
|
/// <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);
|
2014-06-25 17:26:07 +00:00
|
|
|
|
|
|
|
|
|
/// <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
|
2014-06-25 17:26:07 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
bool ReadOnly { get; set; }
|
2014-06-22 15:05:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|