2025-01-02 17:55:16 +08:00
using Newtonsoft.Json ;
using Newtonsoft.Json.Converters ;
namespace Essgee.Emulation.Configuration
{
//todo Unity [ElementPriority(1)]
public class SC3000 : IConfiguration
{
//todo Unity [DropDownControl("General", "TV Standard", typeof(TVStandard))]
[JsonConverter(typeof(StringEnumConverter))]
public TVStandard TVStandard { get ; set ; }
//todo Unity [DropDownControl("General", "Reset Button", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey InputReset { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("General", "Change Input Mode", typeof(Keys), Keys.F11, Tooltip = "Selects which PC keyboard key is used to switch between SC-3000 keyboard and controller input.")]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey InputChangeMode { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("General", "Play Tape", typeof(Keys), Keys.F11, Tooltip = "Note that tape emulation is currently non-functional.")]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey InputPlayTape { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("Controller Port 1", "D-Pad Up", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey Joypad1Up { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("Controller Port 1", "D-Pad Down", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey Joypad1Down { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("Controller Port 1", "D-Pad Left", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey Joypad1Left { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("Controller Port 1", "D-Pad Right", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey Joypad1Right { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("Controller Port 1", "Button 1", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey Joypad1Button1 { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("Controller Port 1", "Button 2", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey Joypad1Button2 { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("Controller Port 2", "D-Pad Up", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey Joypad2Up { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("Controller Port 2", "D-Pad Down", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey Joypad2Down { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("Controller Port 2", "D-Pad Left", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey Joypad2Left { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("Controller Port 2", "D-Pad Right", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey Joypad2Right { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("Controller Port 2", "Button 1", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey Joypad2Button1 { get ; set ; }
2025-01-02 17:55:16 +08:00
//todo Unity [DropDownControl("Controller Port 2", "Button 2", typeof(Keys), Keys.F11)]
[JsonConverter(typeof(StringEnumConverter))]
2025-01-03 19:53:38 +08:00
public MotionKey Joypad2Button2 { get ; set ; }
2025-01-02 17:55:16 +08:00
public SC3000 ( )
{
TVStandard = TVStandard . NTSC ;
2025-01-03 19:53:38 +08:00
InputReset = MotionKey . F12 ;
InputChangeMode = MotionKey . F1 ;
InputPlayTape = MotionKey . F2 ;
2025-01-02 17:55:16 +08:00
2025-01-03 19:53:38 +08:00
Joypad1Up = MotionKey . Up ;
Joypad1Down = MotionKey . Down ;
Joypad1Left = MotionKey . Left ;
Joypad1Right = MotionKey . Right ;
Joypad1Button1 = MotionKey . A ;
Joypad1Button2 = MotionKey . S ;
2025-01-02 17:55:16 +08:00
2025-01-03 19:53:38 +08:00
Joypad2Up = MotionKey . NumPad8 ;
Joypad2Down = MotionKey . NumPad2 ;
Joypad2Left = MotionKey . NumPad4 ;
Joypad2Right = MotionKey . NumPad6 ;
Joypad2Button1 = MotionKey . NumPad1 ;
Joypad2Button2 = MotionKey . NumPad3 ;
2025-01-02 17:55:16 +08:00
}
}
}