From 34bfa466738a6451356e39088d3abb3828695008 Mon Sep 17 00:00:00 2001 From: SuuperW Date: Wed, 25 Mar 2020 13:50:21 -0500 Subject: [PATCH] new Lid handling strategy --- BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs index 924e0cbcef..7900237d59 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs @@ -41,7 +41,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS | (controller.IsPressed("R") ? 0x100 : 0) | (controller.IsPressed("L") ? 0x200 : 0) | (controller.IsPressed("X") ? 0x400 : 0) | (controller.IsPressed("Y") ? 0x800 : 0) | (controller.IsPressed("Touch") ? 0x2000 : 0) - | (controller.IsPressed("Lid") ? 0x4000 : 0); + | (controller.IsPressed("LidOpen") ? 0x4000 : 0) | (controller.IsPressed("LidClose") ? 0x8000 : 0); FrameAdvance((short)buttons, (byte)controller.GetFloat("TouchX"), (byte)controller.GetFloat("TouchY")); getNewBuffer = true; return true; @@ -91,7 +91,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS ControllerDefinition.BoolButtons.Add("Start"); ControllerDefinition.BoolButtons.Add("Select"); - ControllerDefinition.BoolButtons.Add("Lid"); + ControllerDefinition.BoolButtons.Add("LidOpen"); + ControllerDefinition.BoolButtons.Add("LidClose"); ControllerDefinition.BoolButtons.Add("Touch"); ControllerDefinition.FloatControls.Add("TouchX");