mirror of
https://github.com/libretro/stella2023.git
synced 2024-11-23 17:10:01 +00:00
fixed duplicate events (menu + emulation) in debugger
This commit is contained in:
parent
58c12ca254
commit
8f0ea1a70b
@ -4942,7 +4942,7 @@ Ms Pac-Man (Stella extended codes):
|
|||||||
<tr><td>UASW </td><td>8K UA Ltd. (swapped banks)</td><td>.UASW </td></tr>
|
<tr><td>UASW </td><td>8K UA Ltd. (swapped banks)</td><td>.UASW </td></tr>
|
||||||
<tr><td>WD </td><td>Wickstead Design (Pink Panther) </td><td>.WD </td></tr>
|
<tr><td>WD </td><td>Wickstead Design (Pink Panther) </td><td>.WD </td></tr>
|
||||||
<tr><td>WDSW </td><td>Wickstead Design (Pink Panther) (bad)</td><td>.WDSW </td></tr>
|
<tr><td>WDSW </td><td>Wickstead Design (Pink Panther) (bad)</td><td>.WDSW </td></tr>
|
||||||
<tr><td>X07 ¹</td><td>64K AtariAge </td><td>.X07 </td></tr>
|
<tr><td>X07</td><td>64K AtariAge </td><td>.X07 </td></tr>
|
||||||
</table></td>
|
</table></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -137,90 +137,93 @@ void DebuggerDialog::handleKeyDown(StellaKey key, StellaMod mod, bool repeated)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle emulation keys second (can be remapped)
|
// Do not handle emulation events which have the same mapping as menu events
|
||||||
const Event::Type event = instance().eventHandler().eventForKey(EventMode::kEmulationMode, key, mod);
|
if(instance().eventHandler().eventForKey(EventMode::kMenuMode, key, mod) == Event::NoType)
|
||||||
switch (event)
|
|
||||||
{
|
{
|
||||||
case Event::ExitMode:
|
// handle emulation keys second (can be remapped)
|
||||||
// make consistent, exit debugger on key UP
|
const Event::Type event = instance().eventHandler().eventForKey(EventMode::kEmulationMode, key, mod);
|
||||||
if(!repeated)
|
switch(event)
|
||||||
myExitPressed = true;
|
{
|
||||||
return;
|
case Event::ExitMode:
|
||||||
|
// make consistent, exit debugger on key UP
|
||||||
|
if(!repeated)
|
||||||
|
myExitPressed = true;
|
||||||
|
return;
|
||||||
|
|
||||||
// events which can be handled 1:1
|
// events which can be handled 1:1
|
||||||
case Event::ToggleP0Collision:
|
case Event::ToggleP0Collision:
|
||||||
case Event::ToggleP0Bit:
|
case Event::ToggleP0Bit:
|
||||||
case Event::ToggleP1Collision:
|
case Event::ToggleP1Collision:
|
||||||
case Event::ToggleP1Bit:
|
case Event::ToggleP1Bit:
|
||||||
case Event::ToggleM0Collision:
|
case Event::ToggleM0Collision:
|
||||||
case Event::ToggleM0Bit:
|
case Event::ToggleM0Bit:
|
||||||
case Event::ToggleM1Collision:
|
case Event::ToggleM1Collision:
|
||||||
case Event::ToggleM1Bit:
|
case Event::ToggleM1Bit:
|
||||||
case Event::ToggleBLCollision:
|
case Event::ToggleBLCollision:
|
||||||
case Event::ToggleBLBit:
|
case Event::ToggleBLBit:
|
||||||
case Event::TogglePFCollision:
|
case Event::TogglePFCollision:
|
||||||
case Event::TogglePFBit:
|
case Event::TogglePFBit:
|
||||||
case Event::ToggleFixedColors:
|
case Event::ToggleFixedColors:
|
||||||
case Event::ToggleCollisions:
|
case Event::ToggleCollisions:
|
||||||
case Event::ToggleBits:
|
case Event::ToggleBits:
|
||||||
|
|
||||||
case Event::ToggleTimeMachine:
|
case Event::ToggleTimeMachine:
|
||||||
|
|
||||||
case Event::SaveState:
|
case Event::SaveState:
|
||||||
case Event::SaveAllStates:
|
case Event::SaveAllStates:
|
||||||
case Event::PreviousState :
|
case Event::PreviousState:
|
||||||
case Event::NextState:
|
case Event::NextState:
|
||||||
case Event::LoadState:
|
case Event::LoadState:
|
||||||
case Event::LoadAllStates:
|
case Event::LoadAllStates:
|
||||||
|
|
||||||
case Event::ConsoleColor:
|
case Event::ConsoleColor:
|
||||||
case Event::ConsoleBlackWhite:
|
case Event::ConsoleBlackWhite:
|
||||||
case Event::ConsoleColorToggle:
|
case Event::ConsoleColorToggle:
|
||||||
case Event::Console7800Pause:
|
case Event::Console7800Pause:
|
||||||
case Event::ConsoleLeftDiffA:
|
case Event::ConsoleLeftDiffA:
|
||||||
case Event::ConsoleLeftDiffB:
|
case Event::ConsoleLeftDiffB:
|
||||||
case Event::ConsoleLeftDiffToggle:
|
case Event::ConsoleLeftDiffToggle:
|
||||||
case Event::ConsoleRightDiffA:
|
case Event::ConsoleRightDiffA:
|
||||||
case Event::ConsoleRightDiffB:
|
case Event::ConsoleRightDiffB:
|
||||||
case Event::ConsoleRightDiffToggle:
|
case Event::ConsoleRightDiffToggle:
|
||||||
if(!repeated)
|
if(!repeated)
|
||||||
instance().eventHandler().handleEvent(event);
|
instance().eventHandler().handleEvent(event);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// events which need special handling in debugger
|
// events which need special handling in debugger
|
||||||
case Event::TakeSnapshot:
|
case Event::TakeSnapshot:
|
||||||
if(!repeated)
|
if(!repeated)
|
||||||
instance().debugger().parser().run("saveSnap");
|
instance().debugger().parser().run("saveSnap");
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case Event::Rewind1Menu:
|
case Event::Rewind1Menu:
|
||||||
doRewind();
|
doRewind();
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case Event::Rewind10Menu:
|
case Event::Rewind10Menu:
|
||||||
doRewind10();
|
doRewind10();
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case Event::RewindAllMenu:
|
case Event::RewindAllMenu:
|
||||||
doRewindAll();
|
doRewindAll();
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case Event::Unwind1Menu:
|
case Event::Unwind1Menu:
|
||||||
doUnwind();
|
doUnwind();
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case Event::Unwind10Menu:
|
case Event::Unwind10Menu:
|
||||||
doUnwind10();
|
doUnwind10();
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case Event::UnwindAllMenu:
|
case Event::UnwindAllMenu:
|
||||||
doUnwindAll();
|
doUnwindAll();
|
||||||
return;
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Dialog::handleKeyDown(key, mod);
|
Dialog::handleKeyDown(key, mod);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -797,7 +797,9 @@
|
|||||||
<ClCompile Include="..\..\debugger\gui\Cart0840Widget.cxx">
|
<ClCompile Include="..\..\debugger\gui\Cart0840Widget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\Cart0FA0Widget.cxx" />
|
<ClCompile Include="..\..\debugger\gui\Cart0FA0Widget.cxx">
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\Cart2KWidget.cxx">
|
<ClCompile Include="..\..\debugger\gui\Cart2KWidget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -831,7 +833,9 @@
|
|||||||
<ClCompile Include="..\..\debugger\gui\CartBFWidget.cxx">
|
<ClCompile Include="..\..\debugger\gui\CartBFWidget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\CartBUSInfoWidget.cxx" />
|
<ClCompile Include="..\..\debugger\gui\CartBUSInfoWidget.cxx">
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\CartBUSWidget.cxx">
|
<ClCompile Include="..\..\debugger\gui\CartBUSWidget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -868,7 +872,9 @@
|
|||||||
<ClCompile Include="..\..\debugger\gui\CartE0Widget.cxx">
|
<ClCompile Include="..\..\debugger\gui\CartE0Widget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\CartE7Widget.cxx" />
|
<ClCompile Include="..\..\debugger\gui\CartE7Widget.cxx">
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\CartEFSCWidget.cxx">
|
<ClCompile Include="..\..\debugger\gui\CartEFSCWidget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -911,14 +917,18 @@
|
|||||||
<ClCompile Include="..\..\debugger\gui\CartFEWidget.cxx">
|
<ClCompile Include="..\..\debugger\gui\CartFEWidget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\CartGLWidget.cxx" />
|
<ClCompile Include="..\..\debugger\gui\CartGLWidget.cxx">
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\CartMDMWidget.cxx">
|
<ClCompile Include="..\..\debugger\gui\CartMDMWidget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\CartRamWidget.cxx">
|
<ClCompile Include="..\..\debugger\gui\CartRamWidget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\Cart03E0Widget.cxx" />
|
<ClCompile Include="..\..\debugger\gui\Cart03E0Widget.cxx">
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\CartTVBoyWidget.cxx">
|
<ClCompile Include="..\..\debugger\gui\CartTVBoyWidget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -949,7 +959,9 @@
|
|||||||
<ClCompile Include="..\..\debugger\gui\GenesisWidget.cxx">
|
<ClCompile Include="..\..\debugger\gui\GenesisWidget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\Joy2BPlusWidget.cxx" />
|
<ClCompile Include="..\..\debugger\gui\Joy2BPlusWidget.cxx">
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\gui\JoystickWidget.cxx">
|
<ClCompile Include="..\..\debugger\gui\JoystickWidget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -977,7 +989,9 @@
|
|||||||
<ClCompile Include="..\..\debugger\gui\TrakBallWidget.cxx">
|
<ClCompile Include="..\..\debugger\gui\TrakBallWidget.cxx">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\debugger\TimerMap.cxx" />
|
<ClCompile Include="..\..\debugger\TimerMap.cxx">
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\emucore\Bankswitch.cxx" />
|
<ClCompile Include="..\..\emucore\Bankswitch.cxx" />
|
||||||
<ClCompile Include="..\..\emucore\Cart03E0.cxx" />
|
<ClCompile Include="..\..\emucore\Cart03E0.cxx" />
|
||||||
<ClCompile Include="..\..\emucore\Cart3EPlus.cxx" />
|
<ClCompile Include="..\..\emucore\Cart3EPlus.cxx" />
|
||||||
|
Loading…
Reference in New Issue
Block a user