using System.Xml.Serialization; using Newtonsoft.Json; namespace SabreTools.Models.Internal { [JsonObject("control"), XmlRoot("control")] public class Control : DatItem { #region Keys /// long public const string ButtonsKey = "buttons"; /// long public const string KeyDeltaKey = "keydelta"; /// long public const string MaximumKey = "maximum"; /// long public const string MinimumKey = "minimum"; /// long public const string PlayerKey = "player"; /// long public const string ReqButtonsKey = "reqbuttons"; /// (yes|no) "no" public const string ReverseKey = "reverse"; /// long public const string Sensitivity = "sensitivity"; /// (joy|stick|paddle|pedal|lightgun|positional|dial|trackball|mouse|only_buttons|keypad|keyboard|mahjong|hanafuda|gambling) public const string ControlTypeKey = "type"; /// string, possibly long public const string WaysKey = "ways"; /// string, possibly long public const string Ways2Key = "ways2"; /// string, possibly long public const string Ways3Key = "ways3"; #endregion public Control() => Type = ItemType.Control; } }