Converted GPGX Analog Controls to 1D
This commit is contained in:
parent
a17945296c
commit
cae7e7fc98
|
@ -92,8 +92,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
|||
ControllerDef.FloatRanges.Add(FullShort);
|
||||
Converts.Add(delegate()
|
||||
{
|
||||
target.analog[idx,0] = (short)source.GetFloat(NX);
|
||||
target.analog[idx,1] = (short)source.GetFloat(NY);
|
||||
target.analog[(2*idx)+0] = (short)source.GetFloat(NX);
|
||||
target.analog[(2*idx)+1] = (short)source.GetFloat(NY);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -215,7 +215,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
|||
/// analog (x/y)
|
||||
/// </summary>
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = MAX_DEVICES * 2)]
|
||||
public readonly short[,] analog = new short[MAX_DEVICES, 2];
|
||||
public readonly short[] analog = new short[MAX_DEVICES * 2];
|
||||
/// <summary>
|
||||
/// gun horizontal offset
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue