Kodi Development
20.0
for Binary and Script based Add-Ons
Group source include
C++
»
Interface - kodi::addon
»
Addon type instances
»
Peripheral
»
2. Joystick operations
Source parts:
PERIPHERAL_ERROR
CMyInstance::GetJoystickInfo(
unsigned
int
index,
kodi::addon::Joystick
& info)
{
return
PERIPHERAL_ERROR_NOT_IMPLEMENTED
;
}
PERIPHERAL_ERROR
CMyInstance::GetFeatures(
const
kodi::addon::Joystick
& joystick,
const
std::string& controller_id, std::vector<kodi::addon::JoystickFeature>& features)
{
return
PERIPHERAL_ERROR_NOT_IMPLEMENTED
;
}
PERIPHERAL_ERROR
CMyInstance::MapFeatures(
const
kodi::addon::Joystick
& joystick,
const
std::string& controller_id,
const
std::vector<kodi::addon::JoystickFeature>& features)
{
return
PERIPHERAL_ERROR_NOT_IMPLEMENTED
;
}
PERIPHERAL_ERROR
CMyInstance::GetIgnoredPrimitives(
const
kodi::addon::Joystick
& joystick, std::vector<kodi::addon::DriverPrimitive>& primitives)
{
return
PERIPHERAL_ERROR_NOT_IMPLEMENTED
;
}
PERIPHERAL_ERROR
CMyInstance::SetIgnoredPrimitives(
const
kodi::addon::Joystick
& joystick,
const
std::vector<kodi::addon::DriverPrimitive>& primitives)
{
return
PERIPHERAL_ERROR_NOT_IMPLEMENTED
;
}
void
CMyInstance::SaveButtonMap(
const
kodi::addon::Joystick
& joystick)
{
}
void
CMyInstance::RevertButtonMap(
const
kodi::addon::Joystick
& joystick)
{
}
void
CMyInstance::ResetButtonMap(
const
kodi::addon::Joystick
& joystick,
const
std::string& controller_id)
{
}
void
CMyInstance::PowerOffJoystick(
unsigned
int
index)
{
}
kodi::addon::Joystick
Definition:
PeripheralUtils.h:569
PERIPHERAL_ERROR
PERIPHERAL_ERROR
Definition:
peripheral.h:36
PERIPHERAL_ERROR_NOT_IMPLEMENTED
@ PERIPHERAL_ERROR_NOT_IMPLEMENTED
-4 : The method that the frontend called is not implemented
Definition:
peripheral.h:50
Generated by
1.9.1