Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches

Detailed Description

Peripheral add-on capabilities
This class is needed to tell Kodi which options are supported on the addon.

If a capability is set to true, then the corresponding methods from kodi::addon::CInstancePeripheral need to be implemented.

As default them all set to false.

Used on kodi::addon::CInstancePeripheral::GetCapabilities().


The following table contains values that can be set with class PeripheralCapabilities :

Name Type Set call Get call
Provides joysticks boolean SetProvidesJoysticks GetProvidesJoysticks
Provides joystick rumble boolean SetProvidesJoystickRumble GetProvidesJoystickRumble
Provides joystick power off boolean SetProvidesJoystickPowerOff GetProvidesJoystickPowerOff
Provides button maps boolean SetProvidesButtonmaps GetProvidesButtonmaps

Topics

 Value Help
 

Function Documentation

◆ SetProvidesJoysticks()

void SetProvidesJoysticks ( bool providesJoysticks)
inline

Set true if the add-on provides joysticks.

◆ GetProvidesJoysticks()

bool GetProvidesJoysticks ( ) const
inline

To get with SetProvidesJoysticks changed values.

◆ SetProvidesJoystickRumble()

void SetProvidesJoystickRumble ( bool providesJoystickRumble)
inline

Set true if the add-on provides joystick rumble.

◆ GetProvidesJoystickRumble()

bool GetProvidesJoystickRumble ( ) const
inline

To get with SetProvidesJoystickRumble changed values.

◆ SetProvidesJoystickPowerOff()

void SetProvidesJoystickPowerOff ( bool providesJoystickPowerOff)
inline

Set true if the add-on provides power off about joystick.

◆ GetProvidesJoystickPowerOff()

bool GetProvidesJoystickPowerOff ( ) const
inline

To get with SetProvidesJoystickPowerOff changed values.

◆ SetProvidesButtonmaps()

void SetProvidesButtonmaps ( bool providesButtonmaps)
inline

Set true if the add-on provides button maps.

◆ GetProvidesButtonmaps()

bool GetProvidesButtonmaps ( ) const
inline

To get with SetProvidesButtonmaps changed values.