diff options
author | Garrett Brown <themagnificentmrb@gmail.com> | 2016-08-15 19:31:15 -0700 |
---|---|---|
committer | Garrett Brown <themagnificentmrb@gmail.com> | 2016-08-15 22:06:35 -0700 |
commit | 53d6c2364131a121d4a5de94f45dd510464562f6 (patch) | |
tree | 94b090c030ef239b8ddd1a4f79ef57d43a08ab3d /lib | |
parent | 3a01911c94e75bdb60a7f420f343d77b22bb2cea (diff) |
[peripheral API] v1.0.20 - Add callback to count controller features
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 |