Restrict the analog control to it's own drawing area
This commit is contained in:
parent
6849f72baf
commit
e25d58eecb
|
@ -48,7 +48,10 @@ namespace BizHawk.MultiClient
|
|||
|
||||
private int GFXToReal(int val)
|
||||
{
|
||||
return (val * 2) - 128;
|
||||
int ret = (val * 2) - 128;
|
||||
if (ret > 127) ret = 127;
|
||||
if (ret < -128) ret = -128;
|
||||
return ret;
|
||||
}
|
||||
|
||||
private void AnalogControlPanel_Paint(object sender, PaintEventArgs e)
|
||||
|
|
Loading…
Reference in New Issue