diff options
| author | manuel <manuel@mausz.at> | 2018-10-15 01:14:02 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2018-10-15 01:14:02 +0200 |
| commit | 483c0b88bfc1b798396c31a4dd2f5239399ce59e (patch) | |
| tree | 15cdb27501b1fdf3be79cc66710c4eb853e31c81 /xbmc/addons/kodi-addon-dev-kit/include/kodi/addon-instance/Peripheral.h | |
| parent | 2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a (diff) | |
| download | kodi-pvr-build-483c0b88bfc1b798396c31a4dd2f5239399ce59e.tar.gz kodi-pvr-build-483c0b88bfc1b798396c31a4dd2f5239399ce59e.tar.bz2 kodi-pvr-build-483c0b88bfc1b798396c31a4dd2f5239399ce59e.zip | |
sync with upstream
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.h | 15 |
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: |
