diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_peripheral.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_peripheral.h | 7 |
1 files changed, 7 insertions, 0 deletions
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: | |||
| 105 | if (!PERIPHERAL_REGISTER_SYMBOL(m_libKODI_peripheral, PERIPHERAL_unregister_me)) return false; | 105 | if (!PERIPHERAL_REGISTER_SYMBOL(m_libKODI_peripheral, PERIPHERAL_unregister_me)) return false; |
| 106 | if (!PERIPHERAL_REGISTER_SYMBOL(m_libKODI_peripheral, PERIPHERAL_trigger_scan)) return false; | 106 | if (!PERIPHERAL_REGISTER_SYMBOL(m_libKODI_peripheral, PERIPHERAL_trigger_scan)) return false; |
| 107 | if (!PERIPHERAL_REGISTER_SYMBOL(m_libKODI_peripheral, PERIPHERAL_refresh_button_maps)) return false; | 107 | if (!PERIPHERAL_REGISTER_SYMBOL(m_libKODI_peripheral, PERIPHERAL_refresh_button_maps)) return false; |
| 108 | if (!PERIPHERAL_REGISTER_SYMBOL(m_libKODI_peripheral, PERIPHERAL_feature_count)) return false; | ||
| 108 | 109 | ||
| 109 | m_callbacks = PERIPHERAL_register_me(m_handle); | 110 | m_callbacks = PERIPHERAL_register_me(m_handle); |
| 110 | return m_callbacks != NULL; | 111 | return m_callbacks != NULL; |
| @@ -120,11 +121,17 @@ public: | |||
| 120 | return PERIPHERAL_refresh_button_maps(m_handle, m_callbacks, strDeviceName.c_str(), strControllerId.c_str()); | 121 | return PERIPHERAL_refresh_button_maps(m_handle, m_callbacks, strDeviceName.c_str(), strControllerId.c_str()); |
| 121 | } | 122 | } |
| 122 | 123 | ||
| 124 | unsigned int FeatureCount(const std::string& strControllerId, JOYSTICK_FEATURE_TYPE type = JOYSTICK_FEATURE_TYPE_UNKNOWN) | ||
| 125 | { | ||
| 126 | return PERIPHERAL_feature_count(m_handle, m_callbacks, strControllerId.c_str(), type); | ||
| 127 | } | ||
| 128 | |||
| 123 | protected: | 129 | protected: |
| 124 | CB_PeripheralLib* (*PERIPHERAL_register_me)(void* handle); | 130 | CB_PeripheralLib* (*PERIPHERAL_register_me)(void* handle); |
| 125 | void (*PERIPHERAL_unregister_me)(void* handle, CB_PeripheralLib* cb); | 131 | void (*PERIPHERAL_unregister_me)(void* handle, CB_PeripheralLib* cb); |
| 126 | void (*PERIPHERAL_trigger_scan)(void* handle, CB_PeripheralLib* cb); | 132 | void (*PERIPHERAL_trigger_scan)(void* handle, CB_PeripheralLib* cb); |
| 127 | void (*PERIPHERAL_refresh_button_maps)(void* handle, CB_PeripheralLib* cb, const char* deviceName, const char* controllerId); | 133 | void (*PERIPHERAL_refresh_button_maps)(void* handle, CB_PeripheralLib* cb, const char* deviceName, const char* controllerId); |
| 134 | unsigned int (*PERIPHERAL_feature_count)(void* handle, CB_PeripheralLib* cb, const char* controllerId, JOYSTICK_FEATURE_TYPE type); | ||
| 128 | 135 | ||
| 129 | private: | 136 | private: |
| 130 | void* m_handle; | 137 | void* m_handle; |
