Restructure + Ack suggestions

This commit is contained in:
Isaac Marovitz 2023-05-17 10:51:47 -04:00 committed by Isaac Marovitz
parent 139a4b1fe7
commit b71fa3784e
5 changed files with 12 additions and 14 deletions

View file

@ -2,16 +2,11 @@ using Avalonia.Svg.Skia;
using Ryujinx.Ava.UI.Models; using Ryujinx.Ava.UI.Models;
using Ryujinx.Ava.UI.Views.Input; using Ryujinx.Ava.UI.Views.Input;
namespace Ryujinx.Ava.UI.ViewModels namespace Ryujinx.Ava.UI.ViewModels.Input
{ {
public class ControllerInputViewModel : BaseModel public class ControllerInputViewModel : BaseModel
{ {
private ControllerInputConfig _config; private ControllerInputConfig _config;
private bool _isLeft;
private bool _isRight;
private bool _showSettings;
private SvgImage _image;
public ControllerInputConfig Config public ControllerInputConfig Config
{ {
get => _config; get => _config;
@ -22,6 +17,7 @@ namespace Ryujinx.Ava.UI.ViewModels
} }
} }
private bool _isLeft;
public bool IsLeft public bool IsLeft
{ {
get => _isLeft; get => _isLeft;
@ -32,6 +28,7 @@ namespace Ryujinx.Ava.UI.ViewModels
} }
} }
private bool _isRight;
public bool IsRight public bool IsRight
{ {
get => _isRight; get => _isRight;
@ -42,6 +39,7 @@ namespace Ryujinx.Ava.UI.ViewModels
} }
} }
private bool _showSettings;
public bool ShowSettings public bool ShowSettings
{ {
get => _showSettings; get => _showSettings;
@ -52,6 +50,7 @@ namespace Ryujinx.Ava.UI.ViewModels
} }
} }
private SvgImage _image;
public SvgImage Image public SvgImage Image
{ {
get => _image; get => _image;

View file

@ -29,7 +29,7 @@ using ConfigGamepadInputId = Ryujinx.Common.Configuration.Hid.Controller.Gamepad
using ConfigStickInputId = Ryujinx.Common.Configuration.Hid.Controller.StickInputId; using ConfigStickInputId = Ryujinx.Common.Configuration.Hid.Controller.StickInputId;
using Key = Ryujinx.Common.Configuration.Hid.Key; using Key = Ryujinx.Common.Configuration.Hid.Key;
namespace Ryujinx.Ava.UI.ViewModels namespace Ryujinx.Ava.UI.ViewModels.Input
{ {
public class InputViewModel : BaseModel, IDisposable public class InputViewModel : BaseModel, IDisposable
{ {

View file

@ -1,16 +1,11 @@
using Avalonia.Svg.Skia; using Avalonia.Svg.Skia;
using Ryujinx.Ava.UI.Models; using Ryujinx.Ava.UI.Models;
namespace Ryujinx.Ava.UI.ViewModels namespace Ryujinx.Ava.UI.ViewModels.Input
{ {
public class KeyboardInputViewModel : BaseModel public class KeyboardInputViewModel : BaseModel
{ {
private KeyboardInputConfig _config; private KeyboardInputConfig _config;
private bool _isLeft;
private bool _isRight;
private bool _showSettings;
private SvgImage _image;
public KeyboardInputConfig Config public KeyboardInputConfig Config
{ {
get => _config; get => _config;
@ -21,6 +16,7 @@ namespace Ryujinx.Ava.UI.ViewModels
} }
} }
private bool _isLeft;
public bool IsLeft public bool IsLeft
{ {
get => _isLeft; get => _isLeft;
@ -31,6 +27,7 @@ namespace Ryujinx.Ava.UI.ViewModels
} }
} }
private bool _isRight;
public bool IsRight public bool IsRight
{ {
get => _isRight; get => _isRight;
@ -41,6 +38,7 @@ namespace Ryujinx.Ava.UI.ViewModels
} }
} }
private bool _showSettings;
public bool ShowSettings public bool ShowSettings
{ {
get => _showSettings; get => _showSettings;
@ -51,6 +49,7 @@ namespace Ryujinx.Ava.UI.ViewModels
} }
} }
private SvgImage _image;
public SvgImage Image public SvgImage Image
{ {
get => _image; get => _image;

View file

@ -1,4 +1,4 @@
namespace Ryujinx.Ava.UI.ViewModels namespace Ryujinx.Ava.UI.ViewModels.Input
{ {
public class RumbleInputViewModel : BaseModel public class RumbleInputViewModel : BaseModel
{ {