mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-11 03:01:50 -10:00
Also fixes DX11.0 support (for Win7 PCs that aren't fully updated), which stopped working after the recent variable refresh rate changes
27 lines
617 B
C#
27 lines
617 B
C#
using Avalonia.Threading;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using Mesen.Config;
|
|
using System;
|
|
|
|
namespace Mesen.ViewModels
|
|
{
|
|
public partial class SmsInputConfigViewModel : DisposableViewModel
|
|
{
|
|
[ObservableProperty] public partial SmsConfig Config { get; set; }
|
|
|
|
public Enum[] AvailableControllerTypesP12 => new Enum[] {
|
|
ControllerType.None,
|
|
ControllerType.SmsController,
|
|
ControllerType.SmsLightPhaser,
|
|
};
|
|
|
|
[Obsolete("For designer only")]
|
|
public SmsInputConfigViewModel() : this(new SmsConfig()) { }
|
|
|
|
public SmsInputConfigViewModel(SmsConfig config)
|
|
{
|
|
Config = config;
|
|
}
|
|
}
|
|
}
|