Skip to content

Commit

Permalink
puae: controller config somewhat works
Browse files Browse the repository at this point in the history
  • Loading branch information
vadosnaprimer committed Nov 8, 2024
1 parent 8f1b647 commit e501d10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/BizHawk.Emulation.Cores/Computers/Amiga/PUAE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ protected override LibWaterboxCore.FrameInfo FrameAdvancePrep(IController contro

for (int port = 1; port <= 2; port++)
{
var currentPort = (port == 1) ? fi.Port1 : fi.Port2;
ref var currentPort = ref (port is 1 ? ref fi.Port1 : ref fi.Port2);

switch (_ports[port - 1])
{
case LibPUAE.ControllerType.Joystick:
{
foreach (var (name, button) in _joystickMap)
{
if (controller.IsPressed($"P{port} {name}"))
if (controller.IsPressed($"P{port} {Inputs.Joystick} {name}"))
{
currentPort.Buttons |= button;
}
Expand All @@ -181,7 +181,7 @@ protected override LibWaterboxCore.FrameInfo FrameAdvancePrep(IController contro
{
foreach (var (name, button) in _cd32padMap)
{
if (controller.IsPressed($"P{port} {name}"))
if (controller.IsPressed($"P{port} {Inputs.Cd32Pad} {name}"))
{
currentPort.Buttons |= button;
}
Expand Down

0 comments on commit e501d10

Please sign in to comment.