Callback to Kodi functions.  
More...
Callback to Kodi functions. 
◆ AddonPath()
  
  
      
        
          | const std::string kodi::addon::CInstancePeripheral::AddonPath  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Used to get the full path where the add-on is installed. 
- Returns
 - The add-on installation path 
 
 
 
◆ FeatureCount()
Return the number of features belonging to the specified controller. 
- Parameters
 - 
  
  
 
- Returns
 - The number of features matching the request parameters 
 
 
 
◆ FeatureType()
  
  
      
        
          | JOYSTICK_FEATURE_TYPE kodi::addon::CInstancePeripheral::FeatureType  | 
          ( | 
          const std::string & |           controllerId,  | 
         
        
           | 
           | 
          const std::string & |           featureName ) | 
         
       
   | 
  
inline   | 
  
 
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 
 
 
 
◆ RefreshButtonMaps()
  
  
      
        
          | void kodi::addon::CInstancePeripheral::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  | 
  
   
 
 
◆ TriggerScan()
  
  
      
        
          | void kodi::addon::CInstancePeripheral::TriggerScan  | 
          ( | 
          void |            | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Trigger a scan for peripherals. 
The add-on calls this if a change in hardware is detected. 
 
 
◆ UserPath()
  
  
      
        
          | const std::string kodi::addon::CInstancePeripheral::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