API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ICONTROLLER_ENABLERUBBERBAND()

Brew Release
Brew MP 1.0.2
See Also
IController_IsRubberBandEnabled IController_SetVerticalSnapOffsets IController_SetHorizontalSnapOffsets IController
Description
This function is used to enable/disable the rubber banding in a controller.
When a content that is panning or flicking is released between two discrete snap offsets, the content will slide to the closest snap offset. This effect of "sliding to the closest snap offset" is referred as rubberbanding.
Params
pif
[]:
[in] Pointer to the IController interface object.
bEnableRubberBand
[]:
[in] Value that holds the new configuration of the controller.
Interface
Prototype
  • int IController_EnableRubberBand(IController *pif, boolean bEnableRubberBand);
    
Return
  •    AEE_SUCCESS - If the controller is able to enable/disable the rubber banding successfully
       AEE_EFAILED - If the controller is not able to enable/disable the rubber banding successfully
    
Side Effect
  • None
Comments
None