diff options
Diffstat (limited to 'src/Ryujinx.Ava/UI/ViewModels/MotionInputViewModel.cs')
-rw-r--r-- | src/Ryujinx.Ava/UI/ViewModels/MotionInputViewModel.cs | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/src/Ryujinx.Ava/UI/ViewModels/MotionInputViewModel.cs b/src/Ryujinx.Ava/UI/ViewModels/MotionInputViewModel.cs new file mode 100644 index 000000000..0b12a51f6 --- /dev/null +++ b/src/Ryujinx.Ava/UI/ViewModels/MotionInputViewModel.cs | |||
@@ -0,0 +1,93 @@ | |||
1 | namespace Ryujinx.Ava.UI.ViewModels | ||
2 | { | ||
3 | public class MotionInputViewModel : BaseModel | ||
4 | { | ||
5 | private int _slot; | ||
6 | public int Slot | ||
7 | { | ||
8 | get => _slot; | ||
9 | set | ||
10 | { | ||
11 | _slot = value; | ||
12 | OnPropertyChanged(); | ||
13 | } | ||
14 | } | ||
15 | |||
16 | private int _altSlot; | ||
17 | public int AltSlot | ||
18 | { | ||
19 | get => _altSlot; | ||
20 | set | ||
21 | { | ||
22 | _altSlot = value; | ||
23 | OnPropertyChanged(); | ||
24 | } | ||
25 | } | ||
26 | |||
27 | private string _dsuServerHost; | ||
28 | public string DsuServerHost | ||
29 | { | ||
30 | get => _dsuServerHost; | ||
31 | set | ||
32 | { | ||
33 | _dsuServerHost = value; | ||
34 | OnPropertyChanged(); | ||
35 | } | ||
36 | } | ||
37 | |||
38 | private int _dsuServerPort; | ||
39 | public int DsuServerPort | ||
40 | { | ||
41 | get => _dsuServerPort; | ||
42 | set | ||
43 | { | ||
44 | _dsuServerPort = value; | ||
45 | OnPropertyChanged(); | ||
46 | } | ||
47 | } | ||
48 | |||
49 | private bool _mirrorInput; | ||
50 | public bool MirrorInput | ||
51 | { | ||
52 | get => _mirrorInput; | ||
53 | set | ||
54 | { | ||
55 | _mirrorInput = value; | ||
56 | OnPropertyChanged(); | ||
57 | } | ||
58 | } | ||
59 | |||
60 | private int _sensitivity; | ||
61 | public int Sensitivity | ||
62 | { | ||
63 | get => _sensitivity; | ||
64 | set | ||
65 | { | ||
66 | _sensitivity = value; | ||
67 | OnPropertyChanged(); | ||
68 | } | ||
69 | } | ||
70 | |||
71 | private double _gryoDeadzone; | ||
72 | public double GyroDeadzone | ||
73 | { | ||
74 | get => _gryoDeadzone; | ||
75 | set | ||
76 | { | ||
77 | _gryoDeadzone = value; | ||
78 | OnPropertyChanged(); | ||
79 | } | ||
80 | } | ||
81 | |||
82 | private bool _enableCemuHookMotion; | ||
83 | public bool EnableCemuHookMotion | ||
84 | { | ||
85 | get => _enableCemuHookMotion; | ||
86 | set | ||
87 | { | ||
88 | _enableCemuHookMotion = value; | ||
89 | OnPropertyChanged(); | ||
90 | } | ||
91 | } | ||
92 | } | ||
93 | } | ||