Callback to Kodi functions.
◆ AddonPath()
const std::string AddonPath |
( |
| ) |
const |
|
inline |
Used to get the full path where the add-on is installed.
- Returns
- The add-on installation path
◆ UserPath()
const std::string UserPath |
( |
| ) |
const |
|
inline |
Used to get the full path to the add-on's user profile.
- Note
- The trailing folder (consisting of the add-on's ID) is not created by default. If it is needed, you must call kodi::vfs::CreateDirectory() to create the folder.
- Returns
- Path to the user profile
◆ TriggerScan()
void TriggerScan |
( |
void |
| ) |
|
|
inline |
Trigger a scan for peripherals.
The add-on calls this if a change in hardware is detected.
◆ RefreshButtonMaps()
void RefreshButtonMaps |
( |
const std::string & |
deviceName = "" , |
|
|
const std::string & |
controllerId = "" |
|
) |
| |
|
inline |
Notify the frontend that button maps have changed.
- Parameters
-
[in] | deviceName | [optional] The name of the device to refresh, or empty/null for all devices |
[in] | controllerId | [optional] The controller ID to refresh, or empty/null for all controllers |
◆ FeatureCount()
Return the number of features belonging to the specified controller.
- Parameters
-
- Returns
- The number of features matching the request parameters
◆ FeatureType()
Return the type of the feature.
- Parameters
-
[in] | controllerId | The controller ID to check |
[in] | featureName | The feature to check |
- Returns
- The type of the specified feature, or JOYSTICK_FEATURE_TYPE_UNKNOWN if unknown