![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
A branch in the controller tree. More...
#include <ControllerHub.h>
Public Member Functions | |
CControllerHub ()=default | |
CControllerHub (const CControllerHub &other) | |
CControllerHub (CControllerHub &&other)=default | |
CControllerHub & | operator= (const CControllerHub &rhs) |
CControllerHub & | operator= (CControllerHub &&rhs) noexcept |
~CControllerHub () | |
void | Clear () |
bool | HasPorts () const |
PortVec & | GetPorts () |
const PortVec & | GetPorts () const |
void | SetPorts (PortVec ports) |
bool | IsControllerAccepted (const std::string &controllerId) const |
bool | IsControllerAccepted (const std::string &portAddress, const std::string &controllerId) const |
ControllerVector | GetControllers () const |
void | GetControllers (ControllerVector &controllers) const |
const CPortNode & | GetPort (const std::string &address) const |
void | GetInputPorts (std::vector< std::string > &inputPorts) const |
Get a list of ports that accept player input. | |
void | GetKeyboardPorts (std::vector< std::string > &keyboardPorts) const |
Get a list of ports that accept keyboard input. | |
void | GetMousePorts (std::vector< std::string > &mousePorts) const |
Get a list of ports that accept mouse input. | |
bool | Serialize (tinyxml2::XMLElement &controllerElement) const |
bool | Deserialize (const tinyxml2::XMLElement &controllerElement) |
std::string | GetDigest (UTILITY::CDigest::Type digestType) const |
A branch in the controller tree.
|
default |
|
inline |
|
default |
|
default |
void CControllerHub::Clear | ( | ) |
bool CControllerHub::Deserialize | ( | const tinyxml2::XMLElement & | controllerElement | ) |
ControllerVector CControllerHub::GetControllers | ( | ) | const |
void CControllerHub::GetControllers | ( | ControllerVector & | controllers | ) | const |
std::string CControllerHub::GetDigest | ( | UTILITY::CDigest::Type | digestType | ) | const |
void CControllerHub::GetInputPorts | ( | std::vector< std::string > & | inputPorts | ) | const |
Get a list of ports that accept player input.
[out] | inputPorts | The list of input ports |
void CControllerHub::GetKeyboardPorts | ( | std::vector< std::string > & | keyboardPorts | ) | const |
Get a list of ports that accept keyboard input.
[out] | keyboardPorts | The list of keyboard ports |
void CControllerHub::GetMousePorts | ( | std::vector< std::string > & | mousePorts | ) | const |
Get a list of ports that accept mouse input.
[out] | mousePorts | The list of mouse ports |
const CPortNode & CControllerHub::GetPort | ( | const std::string & | address | ) | const |
|
inline |
|
inline |
|
inline |
bool CControllerHub::IsControllerAccepted | ( | const std::string & | controllerId | ) | const |
bool CControllerHub::IsControllerAccepted | ( | const std::string & | portAddress, |
const std::string & | controllerId ) const |
|
noexcept |
CControllerHub & CControllerHub::operator= | ( | const CControllerHub & | rhs | ) |
bool CControllerHub::Serialize | ( | tinyxml2::XMLElement & | controllerElement | ) | const |