Virtualpads - Analog Stick - fix updating of stick value when using the X,Y numeric boxes
This commit is contained in:
parent
b75a32067b
commit
63a7e2e4c6
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue