Files
MesenCE/UI/ViewModels/CvInputConfigViewModel.cs
SourMesen 40335ce735 UI: Update to Avalonia 12, .NET 10 and replace ReactiveUI with MVVM community toolkit (#142)
Also fixes DX11.0 support (for Win7 PCs that aren't fully updated), which stopped working after the recent variable refresh rate changes
2026-07-03 16:04:42 +09:00

26 lines
586 B
C#

using Avalonia.Threading;
using CommunityToolkit.Mvvm.ComponentModel;
using Mesen.Config;
using System;
namespace Mesen.ViewModels
{
public partial class CvInputConfigViewModel : DisposableViewModel
{
[ObservableProperty] public partial CvConfig Config { get; set; }
public Enum[] AvailableControllerTypesP12 => new Enum[] {
ControllerType.None,
ControllerType.ColecoVisionController,
};
[Obsolete("For designer only")]
public CvInputConfigViewModel() : this(new CvConfig()) { }
public CvInputConfigViewModel(CvConfig config)
{
Config = config;
}
}
}