2018-02-09 21:31:05 +00:00
|
|
|
//
|
|
|
|
// MultiJoystickMachine.cpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 09/02/2018.
|
|
|
|
// Copyright © 2018 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "MultiJoystickMachine.hpp"
|
|
|
|
|
|
|
|
using namespace Analyser::Dynamic;
|
|
|
|
|
|
|
|
MultiJoystickMachine::MultiJoystickMachine(const std::vector<std::unique_ptr<::Machine::DynamicMachine>> &machines) {
|
|
|
|
for(const auto &machine: machines) {
|
|
|
|
JoystickMachine::Machine *joystick_machine = machine->joystick_machine();
|
2018-02-19 21:06:46 +00:00
|
|
|
if(joystick_machine) machines_.push_back(joystick_machine);
|
2018-02-09 21:31:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
std::vector<std::unique_ptr<Inputs::Joystick>> &MultiJoystickMachine::get_joysticks() {
|
|
|
|
return joysticks_;
|
|
|
|
}
|