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.
Parameters
  • 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
Comment
None
  • Follow