don't expose not fully functional controllers in stella

This commit is contained in:
CasualPokePlayer 2024-09-16 00:44:31 -07:00
parent 5b74211460
commit d9b3728365
3 changed files with 9 additions and 14 deletions

View File

@ -53,10 +53,10 @@ namespace BizHawk.Emulation.Cores.Atari.Stella
{
[Atari2600ControllerTypes.Unplugged] = portNum => new UnpluggedController(portNum),
[Atari2600ControllerTypes.Joystick] = portNum => new StandardController(portNum),
[Atari2600ControllerTypes.Paddle] = portNum => new PaddleController(portNum),
[Atari2600ControllerTypes.BoostGrip] = portNum => new BoostGripController(portNum),
//[Atari2600ControllerTypes.Paddle] = portNum => new PaddleController(portNum),
//[Atari2600ControllerTypes.BoostGrip] = portNum => new BoostGripController(portNum),
[Atari2600ControllerTypes.Driving] = portNum => new DrivingController(portNum),
[Atari2600ControllerTypes.Keyboard] = portNum => new KeyboardController(portNum)
//[Atari2600ControllerTypes.Keyboard] = portNum => new KeyboardController(portNum)
};
}
}

View File

@ -9,10 +9,10 @@ namespace BizHawk.Emulation.Cores.Atari.Stella
{
Unplugged,
Joystick,
Paddle,
BoostGrip,
//Paddle,
//BoostGrip,
Driving,
Keyboard
//Keyboard
}
/// <summary>
@ -305,11 +305,6 @@ namespace BizHawk.Emulation.Cores.Atari.Stella
public ControllerDefinition Definition { get; }
public void SyncState(Serializer ser)
{
// Nothing todo, I think
}
public int PortNum { get; }
public byte Read(IController c)

View File

@ -78,10 +78,10 @@ namespace BizHawk.Emulation.Cores
{
StellaControllerTypes.Unplugged => null,
StellaControllerTypes.Joystick => StandardController(controller),
StellaControllerTypes.Paddle => PaddleController(controller),
StellaControllerTypes.BoostGrip => BoostGripController(controller),
//StellaControllerTypes.Paddle => PaddleController(controller),
//StellaControllerTypes.BoostGrip => BoostGripController(controller),
StellaControllerTypes.Driving => DrivingController(controller),
StellaControllerTypes.Keyboard => KeyboardController(controller),
//StellaControllerTypes.Keyboard => KeyboardController(controller),
_ => null
};
}