diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/addons/library.kodi.peripheral/libKODI_peripheral.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/addons/library.kodi.peripheral/libKODI_peripheral.cpp b/lib/addons/library.kodi.peripheral/libKODI_peripheral.cpp index 597b489043..bd7b293b1f 100644 --- a/lib/addons/library.kodi.peripheral/libKODI_peripheral.cpp +++ b/lib/addons/library.kodi.peripheral/libKODI_peripheral.cpp @@ -69,6 +69,13 @@ DLLEXPORT void PERIPHERAL_refresh_button_maps(AddonCB* frontend, CB_PeripheralLi return cb->RefreshButtonMaps(frontend->addonData, deviceName ? deviceName : "", controllerId ? controllerId : ""); } +DLLEXPORT unsigned int PERIPHERAL_feature_count(AddonCB* frontend, CB_PeripheralLib* cb, const char* controllerId, JOYSTICK_FEATURE_TYPE type) +{ + if (frontend == NULL || cb == NULL) + return 0; + return cb->FeatureCount(frontend->addonData, controllerId, type); +} + #ifdef __cplusplus } #endif |