Joystick operations to handle control about.
Definition: PeripheralUtils.h:569
PERIPHERAL_ERROR
Definition: peripheral.h:36
virtual void RevertButtonMap(const kodi::addon::Joystick &joystick)
Revert the button map to the last time it was loaded or committed to disk.
Definition: Peripheral.h:507
virtual PERIPHERAL_ERROR MapFeatures(const kodi::addon::Joystick &joystick, const std::string &controller_id, const std::vector< kodi::addon::JoystickFeature > &features)
Add or update joystick features.
Definition: Peripheral.h:455
virtual PERIPHERAL_ERROR SetIgnoredPrimitives(const kodi::addon::Joystick &joystick, const std::vector< kodi::addon::DriverPrimitive > &primitives)
Set the list of driver primitives that are ignored for the device.
Definition: Peripheral.h:487
virtual void SaveButtonMap(const kodi::addon::Joystick &joystick)
Save the button map for the given joystick.
Definition: Peripheral.h:500
virtual void PowerOffJoystick(unsigned int index)
Powers off the given joystick if supported.
Definition: Peripheral.h:525
virtual void ResetButtonMap(const kodi::addon::Joystick &joystick, const std::string &controller_id)
Reset the button map for the given joystick and controller profile ID.
Definition: Peripheral.h:515
virtual PERIPHERAL_ERROR GetFeatures(const kodi::addon::Joystick &joystick, const std::string &controller_id, std::vector< kodi::addon::JoystickFeature > &features)
Get the features that allow translating the joystick into the controller profile.
Definition: Peripheral.h:438
virtual PERIPHERAL_ERROR GetIgnoredPrimitives(const kodi::addon::Joystick &joystick, std::vector< kodi::addon::DriverPrimitive > &primitives)
Get the driver primitives that should be ignored while mapping the device.
Definition: Peripheral.h:473
virtual PERIPHERAL_ERROR GetJoystickInfo(unsigned int index, kodi::addon::Joystick &info)
Get extended info about an attached joystick.
Definition: Peripheral.h:421
{
}
{
}
{
}
{
}
{
}
{
}
{
}
void CMyInstance::ResetButtonMap(
const kodi::addon::Joystick& joystick,
const std::string& controller_id)
{
}
void CMyInstance::PowerOffJoystick(unsigned int index)
{
}
@ PERIPHERAL_ERROR_NOT_IMPLEMENTED
-4 : The method that the frontend called is not implemented
Definition: peripheral.h:50