|
kodi
|
Node in the controller tree. More...
#include <ControllerNode.h>
Public Member Functions | |
| CControllerNode (const CControllerNode &other) | |
| CControllerNode (CControllerNode &&other)=default | |
| CControllerNode & | operator= (const CControllerNode &rhs) |
| CControllerNode & | operator= (CControllerNode &&rhs) noexcept |
| void | Clear () |
| const ControllerPtr & | GetController () const |
| Controller profile of this code. More... | |
| void | SetController (ControllerPtr controller) |
| void | GetControllers (ControllerVector &controllers) const |
| const std::string & | GetPortAddress () const |
| Address given to the controller's port by the implementation. | |
| void | SetPortAddress (std::string portAddress) |
| const std::string & | GetControllerAddress () const |
| Address given to the controller node by the implementation. | |
| void | SetControllerAddress (std::string controllerAddress) |
| const CControllerHub & | GetHub () const |
| Collection of ports on this controller. More... | |
| CControllerHub & | GetHub () |
| void | SetHub (CControllerHub hub) |
| bool | IsValid () const |
| Check if this node has a valid controller profile. | |
| bool | IsControllerAccepted (const std::string &controllerId) const |
| Check to see if a controller is compatible with a controller port. More... | |
| bool | IsControllerAccepted (const std::string &portAddress, const std::string &controllerId) const |
| Check to see if a controller is compatible with a controller port. More... | |
| bool | ProvidesInput () const |
| Check if this node provides input. | |
| void | GetInputPorts (std::vector< std::string > &activePorts) const |
| Get a list of ports that accept player input. More... | |
Node in the controller tree.
The node identifies the controller profile, and optionally the available controller ports.
|
inline |
Controller profile of this code.
|
inline |
Collection of ports on this controller.
| void CControllerNode::GetInputPorts | ( | std::vector< std::string > & | activePorts | ) | const |
Get a list of ports that accept player input.
| [out] | inputPorts | The list of input ports |
| bool CControllerNode::IsControllerAccepted | ( | const std::string & | controllerId | ) | const |
Check to see if a controller is compatible with a controller port.
| controllerId | The ID of the controller |
| bool CControllerNode::IsControllerAccepted | ( | const std::string & | portAddress, |
| const std::string & | controllerId | ||
| ) | const |
Check to see if a controller is compatible with a controller port.
| portAddress | The port address |
| controllerId | The ID of the controller |
1.8.13