Virtualpads - Analog Stick - fix updating of stick value when using the X,Y numeric boxes

This commit is contained in:
adelikat 2014-07-02 15:38:39 +00:00
parent b75a32067b
commit 63a7e2e4c6
1 changed files with 31 additions and 2 deletions

View File

@ -8,8 +8,37 @@ namespace BizHawk.Client.EmuHawk
{
public sealed class AnalogStickPanel : Panel
{
public int X = 0;
public int Y = 0;
private int _x = 0;
private int _y = 0;
public int X
{
get
{
return _x;
}
set
{
_x = value;
SetAnalog();
}
}
public int Y
{
get
{
return _y;
}
set
{
_y = value;
SetAnalog();
}
}
public bool HasValue = false;
public bool ReadOnly { get; set; }