11 #include "games/controllers/ControllerTypes.h" 12 #include "games/ports/types/PortNode.h" 37 bool HasPorts()
const {
return !m_ports.empty(); }
38 PortVec& GetPorts() {
return m_ports; }
39 const PortVec& GetPorts()
const {
return m_ports; }
40 void SetPorts(PortVec ports);
42 bool IsControllerAccepted(
const std::string& controllerId)
const;
43 bool IsControllerAccepted(
const std::string& portAddress,
const std::string& controllerId)
const;
47 const CPortNode& GetPort(
const std::string& address)
const;
54 void GetInputPorts(std::vector<std::string>& inputPorts)
const;
57 static const CPortNode& GetPortInternal(
const PortVec& ports,
const std::string& address);
void GetInputPorts(std::vector< std::string > &inputPorts) const
Get a list of ports that accept player input.
Definition: ControllerHub.cpp:110
Collection of nodes that can be connected to this port.
Definition: PortNode.h:28
Definition: AudioDecoder.h:18
A branch in the controller tree.
Definition: ControllerHub.h:25
std::vector< ControllerPtr > ControllerVector
Vector of smart pointers to a game controller (CController)
Definition: ControllerTypes.h:32