mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-06 13:08:52 +02:00
Use [ObservableProperty] attribute, which greatly reduces or eliminates boilerplate code needed to generate observable properties Co-authored-by: GreemDev <greemdev@ryujinx.app>
14 lines
292 B
C#
14 lines
292 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace Ryujinx.Ava.UI.ViewModels.Input
|
|
{
|
|
public partial class RumbleInputViewModel : BaseModel
|
|
{
|
|
[ObservableProperty]
|
|
private float _strongRumble;
|
|
|
|
[ObservableProperty]
|
|
private float _weakRumble;
|
|
}
|
|
}
|