aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Ava/UI/ViewModels/MotionInputViewModel.cs
diff options
context:
space:
mode:
authorIsaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com>2023-05-22 00:16:20 +0100
committerGitHub <noreply@github.com>2023-05-22 01:16:20 +0200
commitb53e7ffd46b5c4ac5c4ac3dcc24385b2c9dc4fa4 (patch)
treee2579164c7c81ab47413d30663224fbbd75e024b /src/Ryujinx.Ava/UI/ViewModels/MotionInputViewModel.cs
parentac66643346df76561ff85be741e2998290d43646 (diff)
Ava UI: Input Menu Redesign (#4990)1.1.815
* Cleanup * Remove redundant locales * Start SVG Fixes… Better +/- buttons Fix the grips Bumpers Better directional pad More SVG stuff Grip adjustments Final stuff * Make image bigger * Border radius * More cleanup * Restructure * Restructure Rumble View * Use compiled bindings where possible * Round those pesky corners * Ack Suggestions * More suggestions * Update src/Ryujinx.Ava/UI/Views/Input/RumbleInputView.axaml.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> --------- Co-authored-by: Ac_K <Acoustik666@gmail.com>
Diffstat (limited to 'src/Ryujinx.Ava/UI/ViewModels/MotionInputViewModel.cs')
-rw-r--r--src/Ryujinx.Ava/UI/ViewModels/MotionInputViewModel.cs93
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 00000000..d57ccc6b
--- /dev/null
+++ b/src/Ryujinx.Ava/UI/ViewModels/MotionInputViewModel.cs
@@ -0,0 +1,93 @@
+namespace Ryujinx.Ava.UI.ViewModels
+{
+ public class MotionInputViewModel : BaseModel
+ {
+ private int _slot;
+ public int Slot
+ {
+ get => _slot;
+ set
+ {
+ _slot = value;
+ OnPropertyChanged();
+ }
+ }
+
+ private int _altSlot;
+ public int AltSlot
+ {
+ get => _altSlot;
+ set
+ {
+ _altSlot = value;
+ OnPropertyChanged();
+ }
+ }
+
+ private string _dsuServerHost;
+ public string DsuServerHost
+ {
+ get => _dsuServerHost;
+ set
+ {
+ _dsuServerHost = value;
+ OnPropertyChanged();
+ }
+ }
+
+ private int _dsuServerPort;
+ public int DsuServerPort
+ {
+ get => _dsuServerPort;
+ set
+ {
+ _dsuServerPort = value;
+ OnPropertyChanged();
+ }
+ }
+
+ private bool _mirrorInput;
+ public bool MirrorInput
+ {
+ get => _mirrorInput;
+ set
+ {
+ _mirrorInput = value;
+ OnPropertyChanged();
+ }
+ }
+
+ private int _sensitivity;
+ public int Sensitivity
+ {
+ get => _sensitivity;
+ set
+ {
+ _sensitivity = value;
+ OnPropertyChanged();
+ }
+ }
+
+ private double _gryoDeadzone;
+ public double GyroDeadzone
+ {
+ get => _gryoDeadzone;
+ set
+ {
+ _gryoDeadzone = value;
+ OnPropertyChanged();
+ }
+ }
+
+ private bool _enableCemuHookMotion;
+ public bool EnableCemuHookMotion
+ {
+ get => _enableCemuHookMotion;
+ set
+ {
+ _enableCemuHookMotion = value;
+ OnPropertyChanged();
+ }
+ }
+ }
+} \ No newline at end of file