N64: Commented out, but rudimentary fake analog stick support by looking at the DPad buttons and basing the analog stick position based on those
This commit is contained in:
parent
9a1241b7e7
commit
ee9584f3aa
|
@ -69,6 +69,15 @@ namespace BizHawk.Emulation.Consoles.Nintendo.N64
|
||||||
public void FrameAdvance(bool render, bool rendersound)
|
public void FrameAdvance(bool render, bool rendersound)
|
||||||
{
|
{
|
||||||
m64pFrameComplete = false;
|
m64pFrameComplete = false;
|
||||||
|
/*
|
||||||
|
sbyte x = 0;
|
||||||
|
sbyte y = 0;
|
||||||
|
if (Controller["P1 DPad R"]) x = 80;
|
||||||
|
if (Controller["P1 DPad L"]) x = -80;
|
||||||
|
if (Controller["P1 DPad D"]) y = -80;
|
||||||
|
if (Controller["P1 DPad U"]) y = 80;
|
||||||
|
InpSetKeys(0, ReadController(1), x, y);
|
||||||
|
*/
|
||||||
InpSetKeys(0, ReadController(1), 0, 0);
|
InpSetKeys(0, ReadController(1), 0, 0);
|
||||||
m64pCoreDoCommandPtr(m64p_command.M64CMD_ADVANCE_FRAME, 0, IntPtr.Zero);
|
m64pCoreDoCommandPtr(m64p_command.M64CMD_ADVANCE_FRAME, 0, IntPtr.Zero);
|
||||||
while (m64pFrameComplete == false) { }
|
while (m64pFrameComplete == false) { }
|
||||||
|
@ -281,7 +290,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo.N64
|
||||||
|
|
||||||
// Input plugin specific
|
// Input plugin specific
|
||||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||||
private delegate int SetKeys(int num, int keys, byte X, byte Y);
|
private delegate int SetKeys(int num, int keys, sbyte X, sbyte Y);
|
||||||
SetKeys InpSetKeys;
|
SetKeys InpSetKeys;
|
||||||
|
|
||||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||||
|
|
Loading…
Reference in New Issue