From 483c0b88bfc1b798396c31a4dd2f5239399ce59e Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 15 Oct 2018 01:14:02 +0200 Subject: sync with upstream --- .../include/kodi/addon-instance/Peripheral.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h') diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h index 78e572b..2df8a36 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h @@ -531,8 +531,7 @@ namespace addon virtual void FreeEvents(unsigned int event_count, PERIPHERAL_EVENT* events) { } /*! - * @brief Send an input event to the specified peripheral - * @param peripheralIndex The index of the device receiving the input event + * @brief Send an input event to the peripheral * @param event The input event * @return true if the event was handled, false otherwise */ @@ -677,9 +676,9 @@ namespace addon * @param[optional] deviceName The name of the device to refresh, or empty/null for all devices * @param[optional] controllerId The controller ID to refresh, or empty/null for all controllers */ - void RefreshButtonMaps(const std::string& strDeviceName = "", const std::string& strControllerId = "") + void RefreshButtonMaps(const std::string& deviceName = "", const std::string& controllerId = "") { - return m_instanceData->toKodi.refresh_button_maps(m_instanceData->toKodi.kodiInstance, strDeviceName.c_str(), strControllerId.c_str()); + return m_instanceData->toKodi.refresh_button_maps(m_instanceData->toKodi.kodiInstance, deviceName.c_str(), controllerId.c_str()); } /*! @@ -690,9 +689,9 @@ namespace addon * * @return The number of features matching the request parameters */ - unsigned int FeatureCount(const std::string& strControllerId, JOYSTICK_FEATURE_TYPE type = JOYSTICK_FEATURE_TYPE_UNKNOWN) + unsigned int FeatureCount(const std::string& controllerId, JOYSTICK_FEATURE_TYPE type = JOYSTICK_FEATURE_TYPE_UNKNOWN) { - return m_instanceData->toKodi.feature_count(m_instanceData->toKodi.kodiInstance, strControllerId.c_str(), type); + return m_instanceData->toKodi.feature_count(m_instanceData->toKodi.kodiInstance, controllerId.c_str(), type); } /*! @@ -704,9 +703,9 @@ namespace addon * @return The type of the specified feature, or JOYSTICK_FEATURE_TYPE_UNKNOWN * if unknown */ - JOYSTICK_FEATURE_TYPE FeatureType(const std::string& strControllerId, const std::string &featureName) + JOYSTICK_FEATURE_TYPE FeatureType(const std::string& controllerId, const std::string &featureName) { - return m_instanceData->toKodi.feature_type(m_instanceData->toKodi.kodiInstance, strControllerId.c_str(), featureName.c_str()); + return m_instanceData->toKodi.feature_type(m_instanceData->toKodi.kodiInstance, controllerId.c_str(), featureName.c_str()); } private: -- cgit v1.2.3