#include <ControllerLayout.h>
◆ CControllerLayout() [1/2]
CControllerLayout::CControllerLayout |
( |
| ) |
|
◆ CControllerLayout() [2/2]
◆ ~CControllerLayout()
CControllerLayout::~CControllerLayout |
( |
| ) |
|
|
default |
◆ Deserialize()
void CControllerLayout::Deserialize |
( |
const tinyxml2::XMLElement * | pLayoutElement, |
|
|
const CController * | controller, |
|
|
std::vector< CPhysicalFeature > & | features ) |
Deserialize the specified XML element.
- Parameters
-
pLayoutElement | The XML element |
controller | The controller, used to obtain read-only properties |
features | The deserialized features, if any |
◆ Icon()
const std::string & KODI::GAME::CControllerLayout::Icon |
( |
void | | ) |
const |
|
inline |
◆ Image()
const std::string & KODI::GAME::CControllerLayout::Image |
( |
void | | ) |
const |
|
inline |
◆ ImagePath()
std::string CControllerLayout::ImagePath |
( |
void | | ) |
const |
Get the image path of the primary layout used when mapping the controller.
- Returns
- The image path, or empty if unknown
◆ IsValid()
bool CControllerLayout::IsValid |
( |
bool | bLog | ) |
const |
Ensures the layout was deserialized correctly, and optionally logs if not.
- Parameters
-
bLog | If true, output the cause of invalidness to the log |
- Returns
- True if the layout is valid and can be used in the GUI, false otherwise
◆ Label()
std::string CControllerLayout::Label |
( |
void | | ) |
const |
Get the label of the primary layout used when mapping the controller.
- Returns
- The label, or empty if unknown
◆ LabelID()
int KODI::GAME::CControllerLayout::LabelID |
( |
void | | ) |
const |
|
inline |
◆ Reset()
◆ Topology()
Get the physical topology of this controller.
The topology of a controller defines its ports and which controllers can physically be connected to them. Also, the topology defines if the controller can provide player input, which is false in the case of hubs.
- Returns
- The physical topology of the controller
The documentation for this class was generated from the following files: