mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-26 03:29:40 +00:00
Fixes const correctness for joystick machines; the ST is now one such.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "AtariST.hpp"
|
||||
|
||||
#include "../../CRTMachine.hpp"
|
||||
#include "../../JoystickMachine.hpp"
|
||||
#include "../../KeyboardMachine.hpp"
|
||||
#include "../../MouseMachine.hpp"
|
||||
#include "../../MediaTarget.hpp"
|
||||
@@ -49,6 +50,7 @@ class ConcreteMachine:
|
||||
public Motorola::MFP68901::MFP68901::InterruptDelegate,
|
||||
public DMAController::Delegate,
|
||||
public MouseMachine::Machine,
|
||||
public JoystickMachine::Machine,
|
||||
public KeyboardMachine::MappedMachine,
|
||||
public Activity::Source,
|
||||
public MediaTarget::Machine,
|
||||
@@ -527,6 +529,11 @@ class ConcreteMachine:
|
||||
return &keyboard_mapper_;
|
||||
}
|
||||
|
||||
// MARK: - JoystickMachine
|
||||
const std::vector<std::unique_ptr<Inputs::Joystick>> &get_joysticks() final {
|
||||
return ikbd_.get_joysticks();
|
||||
}
|
||||
|
||||
// MARK: - AYPortHandler
|
||||
void set_port_output(bool port_b, uint8_t value) final {
|
||||
if(port_b) {
|
||||
|
||||
Reference in New Issue
Block a user