WVR_ReleaseControllerModel

WVR_EXPORT void WVR_ReleaseControllerModel(WVR_CtrlerModel_t ** ctrlerModel)

Use this function to deallocate the memory used for the controller model.

Delete the controller received from WVR_GetCurrentControllerModel.

Version
API Level 5
Parameters
  • ctrlerModel: An allocated object about controller model. The object will be destroyed and the structure cleared(ctrlerModel will be set nullptr).

How to use

Try the example below:

if (mCachedData != nullptr) {
    WVR_ReleaseControllerModel(&mCachedData); //we will clear cached data ptr to nullptr.
}