11 #include "games/controllers/ControllerTypes.h" 49 void SetController(ControllerPtr controller);
51 void GetControllers(ControllerVector& controllers)
const;
57 void SetPortAddress(std::string portAddress);
63 void SetControllerAddress(std::string controllerAddress);
78 bool IsValid()
const {
return static_cast<bool>(m_controller); }
97 bool IsControllerAccepted(
const std::string& portAddress,
const std::string& controllerId)
const;
105 ControllerPtr m_controller;
108 std::string m_portAddress;
111 std::string m_controllerAddress;
113 std::unique_ptr<CControllerHub> m_hub;
116 using ControllerNodeVec = std::vector<CControllerNode>;
Node in the controller tree.
Definition: ControllerNode.h:29
const std::string & GetPortAddress() const
Address given to the controller's port by the implementation.
Definition: ControllerNode.h:56
const std::string & GetControllerAddress() const
Address given to the controller node by the implementation.
Definition: ControllerNode.h:62
bool IsControllerAccepted(const std::string &controllerId) const
Check to see if a controller is compatible with a controller port.
Definition: ControllerNode.cpp:100
Controller configuration window.
Definition: AudioDecoder.h:18
A branch in the controller tree.
Definition: ControllerHub.h:23
bool ProvidesInput() const
Check if this node provides input.
Definition: ControllerNode.cpp:133
const ControllerPtr & GetController() const
Controller profile of this code.
Definition: ControllerNode.h:48
const CControllerHub & GetHub() const
Collection of ports on this controller.
Definition: ControllerNode.h:71
bool IsValid() const
Check if this node has a valid controller profile.
Definition: ControllerNode.h:78