2025-09-26 10:20:48 -04:00
|
|
|
using System.Xml;
|
|
|
|
|
using System.Xml.Serialization;
|
2026-04-02 02:18:08 -04:00
|
|
|
using SabreTools.Data.Models.Metadata;
|
2025-09-26 10:20:48 -04:00
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.Listxml
|
2025-09-26 10:20:48 -04:00
|
|
|
{
|
|
|
|
|
[XmlRoot("control")]
|
|
|
|
|
public class Control
|
|
|
|
|
{
|
|
|
|
|
/// <remarks>(joy|stick|paddle|pedal|lightgun|positional|dial|trackball|mouse|only_buttons|keypad|keyboard|mahjong|hanafuda|gambling)</remarks>
|
2025-09-26 11:42:28 -04:00
|
|
|
[Required]
|
2025-09-26 10:20:48 -04:00
|
|
|
[XmlAttribute("type")]
|
2026-04-02 02:18:08 -04:00
|
|
|
public ControlType? Type { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
[XmlAttribute("player")]
|
2026-04-03 09:46:10 -04:00
|
|
|
public long? Player { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
[XmlAttribute("buttons")]
|
2026-04-03 09:46:10 -04:00
|
|
|
public long? Buttons { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
[XmlAttribute("reqbuttons")]
|
2026-04-03 09:46:10 -04:00
|
|
|
public long? ReqButtons { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
[XmlAttribute("minimum")]
|
2026-04-03 09:46:10 -04:00
|
|
|
public long? Minimum { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
[XmlAttribute("maximum")]
|
2026-04-03 09:46:10 -04:00
|
|
|
public long? Maximum { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
[XmlAttribute("sensitivity")]
|
2026-04-03 09:46:10 -04:00
|
|
|
public long? Sensitivity { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
[XmlAttribute("keydelta")]
|
2026-04-03 09:46:10 -04:00
|
|
|
public long? KeyDelta { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
/// <remarks>(yes|no) "no"</remarks>
|
|
|
|
|
[XmlAttribute("reverse")]
|
2026-04-01 21:59:16 -04:00
|
|
|
public bool? Reverse { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
[XmlAttribute("ways")]
|
|
|
|
|
public string? Ways { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("ways2")]
|
|
|
|
|
public string? Ways2 { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("ways3")]
|
|
|
|
|
public string? Ways3 { get; set; }
|
|
|
|
|
}
|
2026-01-27 12:03:01 -05:00
|
|
|
}
|