From 8cdf8dec703d882b46ca50a769fabb95ffc48e2c Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 24 Nov 2016 21:27:41 +0100 Subject: sync with upstream --- xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_peripheral.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_peripheral.h') diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_peripheral.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_peripheral.h index 9f3f986..a28e48d 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_peripheral.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_peripheral.h @@ -105,6 +105,7 @@ public: if (!PERIPHERAL_REGISTER_SYMBOL(m_libKODI_peripheral, PERIPHERAL_unregister_me)) return false; if (!PERIPHERAL_REGISTER_SYMBOL(m_libKODI_peripheral, PERIPHERAL_trigger_scan)) return false; if (!PERIPHERAL_REGISTER_SYMBOL(m_libKODI_peripheral, PERIPHERAL_refresh_button_maps)) return false; + if (!PERIPHERAL_REGISTER_SYMBOL(m_libKODI_peripheral, PERIPHERAL_feature_count)) return false; m_callbacks = PERIPHERAL_register_me(m_handle); return m_callbacks != NULL; @@ -120,11 +121,17 @@ public: return PERIPHERAL_refresh_button_maps(m_handle, m_callbacks, strDeviceName.c_str(), strControllerId.c_str()); } + unsigned int FeatureCount(const std::string& strControllerId, JOYSTICK_FEATURE_TYPE type = JOYSTICK_FEATURE_TYPE_UNKNOWN) + { + return PERIPHERAL_feature_count(m_handle, m_callbacks, strControllerId.c_str(), type); + } + protected: CB_PeripheralLib* (*PERIPHERAL_register_me)(void* handle); void (*PERIPHERAL_unregister_me)(void* handle, CB_PeripheralLib* cb); void (*PERIPHERAL_trigger_scan)(void* handle, CB_PeripheralLib* cb); void (*PERIPHERAL_refresh_button_maps)(void* handle, CB_PeripheralLib* cb, const char* deviceName, const char* controllerId); + unsigned int (*PERIPHERAL_feature_count)(void* handle, CB_PeripheralLib* cb, const char* controllerId, JOYSTICK_FEATURE_TYPE type); private: void* m_handle; -- cgit v1.2.3