From 8cdf8dec703d882b46ca50a769fabb95ffc48e2c Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 24 Nov 2016 21:27:41 +0100 Subject: sync with upstream --- .../include/kodi/kodi_peripheral_callbacks.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h') diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h index 720c62f..2dfc571 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h @@ -44,6 +44,16 @@ typedef struct CB_PeripheralLib */ void (*RefreshButtonMaps)(void* addonData, const char* deviceName, const char* controllerId); + /*! + * @brief Return the number of features belonging to the specified controller + * + * @param controllerId The controller ID to enumerate + * @param type[optional] Type to filter by, or JOYSTICK_FEATURE_TYPE_UNKNOWN for all features + * + * @return The number of features matching the request parameters + */ + unsigned int (*FeatureCount)(void* addonData, const char* controllerId, JOYSTICK_FEATURE_TYPE type); + } CB_PeripheralLib; #ifdef __cplusplus -- cgit v1.2.3