1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-10-17 15:19:18 +00:00

Adds multiple target versions of all the DynamicMachine-vended types.

This commit is contained in:
Thomas Harte
2018-02-09 16:31:05 -05:00
parent 043fd5d404
commit 43b682a5af
22 changed files with 304 additions and 32 deletions

View File

@@ -0,0 +1,22 @@
//
// 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();
if(joystick_machine) machines_.push_back(joystick_machine);
}
}
std::vector<std::unique_ptr<Inputs::Joystick>> &MultiJoystickMachine::get_joysticks() {
return joysticks_;
}