11 #include "games/controllers/ControllerTypes.h" 12 #include "games/controllers/types/ControllerNode.h" 42 void SetConnected(
bool bConnected) { m_bConnected = bConnected; }
51 void SetActiveController(
unsigned int controllerIndex) { m_active = controllerIndex; }
52 bool SetActiveController(
const std::string& controllerId);
60 void SetPortType(PORT_TYPE type) { m_portType = type; }
68 const std::string&
GetPortID()
const {
return m_portId; }
69 void SetPortID(std::string portId);
74 const std::string&
GetAddress()
const {
return m_address; }
75 void SetAddress(std::string address);
82 void SetForceConnected(
bool forceConnected) { m_forceConnected = forceConnected; }
92 void SetCompatibleControllers(ControllerNodeVec controllers);
111 bool IsControllerAccepted(
const std::string& portAddress,
const std::string& controllerId)
const;
116 bool m_bConnected =
false;
117 unsigned int m_active = 0;
118 PORT_TYPE m_portType = PORT_TYPE::UNKNOWN;
119 std::string m_portId;
120 std::string m_address;
121 bool m_forceConnected{
true};
122 ControllerNodeVec m_controllers;
128 using PortVec = std::vector<CPortNode>;
bool IsControllerAccepted(const std::string &controllerId) const
Check to see if a controller is compatible with this tree.
Definition: PortNode.cpp:103
const CControllerNode & GetActiveController() const
The controller that is active on this port.
Definition: PortNode.cpp:54
Node in the controller tree.
Definition: ControllerNode.h:29
const std::string & GetPortID() const
The hardware or controller port ID.
Definition: PortNode.h:68
const ControllerNodeVec & GetCompatibleControllers() const
Return the controller profiles that are compatible with this port.
Definition: PortNode.h:90
Collection of nodes that can be connected to this port.
Definition: PortNode.h:26
bool IsForceConnected() const
If true, prevents a disconnection option from being shown for this port.
Definition: PortNode.h:81
Controller configuration window.
Definition: AudioDecoder.h:18
Definition: PhysicalPort.h:21
const std::string & GetAddress() const
Address given to the node by the implementation.
Definition: PortNode.h:74
bool IsConnected() const
Connection state of the port.
Definition: PortNode.h:41
PORT_TYPE GetPortType() const
The port type.
Definition: PortNode.h:59