// // MultiJoystickMachine.hpp // Clock Signal // // Created by Thomas Harte on 09/02/2018. // Copyright © 2018 Thomas Harte. All rights reserved. // #ifndef MultiJoystickMachine_hpp #define MultiJoystickMachine_hpp #include "../../../../Machines/DynamicMachine.hpp" #include #include namespace Analyser { namespace Dynamic { /*! Provides a class that multiplexes the joystick machine interface to multiple machines. Makes a static internal copy of the list of machines; makes no guarantees about the order of delivered messages. */ class MultiJoystickMachine: public JoystickMachine::Machine { public: MultiJoystickMachine(const std::vector> &machines); // Below is the standard JoystickMachine::Machine interface; see there for documentation. std::vector> &get_joysticks() override; private: std::vector> joysticks_; }; } } #endif /* MultiJoystickMachine_hpp */