summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h')
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h15
1 files changed, 7 insertions, 8 deletions
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
531 virtual void FreeEvents(unsigned int event_count, PERIPHERAL_EVENT* events) { } 531 virtual void FreeEvents(unsigned int event_count, PERIPHERAL_EVENT* events) { }
532 532
533 /*! 533 /*!
534 * @brief Send an input event to the specified peripheral 534 * @brief Send an input event to the peripheral
535 * @param peripheralIndex The index of the device receiving the input event
536 * @param event The input event 535 * @param event The input event
537 * @return true if the event was handled, false otherwise 536 * @return true if the event was handled, false otherwise
538 */ 537 */
@@ -677,9 +676,9 @@ namespace addon
677 * @param[optional] deviceName The name of the device to refresh, or empty/null for all devices 676 * @param[optional] deviceName The name of the device to refresh, or empty/null for all devices
678 * @param[optional] controllerId The controller ID to refresh, or empty/null for all controllers 677 * @param[optional] controllerId The controller ID to refresh, or empty/null for all controllers
679 */ 678 */
680 void RefreshButtonMaps(const std::string& strDeviceName = "", const std::string& strControllerId = "") 679 void RefreshButtonMaps(const std::string& deviceName = "", const std::string& controllerId = "")
681 { 680 {
682 return m_instanceData->toKodi.refresh_button_maps(m_instanceData->toKodi.kodiInstance, strDeviceName.c_str(), strControllerId.c_str()); 681 return m_instanceData->toKodi.refresh_button_maps(m_instanceData->toKodi.kodiInstance, deviceName.c_str(), controllerId.c_str());
683 } 682 }
684 683
685 /*! 684 /*!
@@ -690,9 +689,9 @@ namespace addon
690 * 689 *
691 * @return The number of features matching the request parameters 690 * @return The number of features matching the request parameters
692 */ 691 */
693 unsigned int FeatureCount(const std::string& strControllerId, JOYSTICK_FEATURE_TYPE type = JOYSTICK_FEATURE_TYPE_UNKNOWN) 692 unsigned int FeatureCount(const std::string& controllerId, JOYSTICK_FEATURE_TYPE type = JOYSTICK_FEATURE_TYPE_UNKNOWN)
694 { 693 {
695 return m_instanceData->toKodi.feature_count(m_instanceData->toKodi.kodiInstance, strControllerId.c_str(), type); 694 return m_instanceData->toKodi.feature_count(m_instanceData->toKodi.kodiInstance, controllerId.c_str(), type);
696 } 695 }
697 696
698 /*! 697 /*!
@@ -704,9 +703,9 @@ namespace addon
704 * @return The type of the specified feature, or JOYSTICK_FEATURE_TYPE_UNKNOWN 703 * @return The type of the specified feature, or JOYSTICK_FEATURE_TYPE_UNKNOWN
705 * if unknown 704 * if unknown
706 */ 705 */
707 JOYSTICK_FEATURE_TYPE FeatureType(const std::string& strControllerId, const std::string &featureName) 706 JOYSTICK_FEATURE_TYPE FeatureType(const std::string& controllerId, const std::string &featureName)
708 { 707 {
709 return m_instanceData->toKodi.feature_type(m_instanceData->toKodi.kodiInstance, strControllerId.c_str(), featureName.c_str()); 708 return m_instanceData->toKodi.feature_type(m_instanceData->toKodi.kodiInstance, controllerId.c_str(), featureName.c_str());
710 } 709 }
711 710
712 private: 711 private: