The Tactile feedback client API provides area registry based feedback and direct feedback to Symbian applications and UI components. You can use the API to add, modify and remove feedback areas, trigger direct feedback and disable feedback for certain UI components or the whole application.
To provide tactile feedback using the using the Tactile feedback client API, follow the steps below:
touchfeedback.lib in your .mmp file.Include the header files touchfeedback.h and touchlogicalfeedback.h.
MTouchFeedback::Instance function
for acquiring a pointer to the interface.SizeChanged function (or in another
approriate place).PositionChanged function (for non-window-owning
controls).RemoveFeedbackForControl in
your control's destructor.HandlePointerEventL function
with a call to InstantFeedback.
Figure: Tactile feedback client API use cases
To provide tactile feedback for touch events in your applications, implement the following use cases:
Using area registry based feedback
Set feedback area
Change feedback area
Remove feedback area
Removing feedback from a control
The following use cases are optional, allowing you to use additional tactile feedback features:
Disabling and enabling feedback
Enable or disable feedback for you application
Enable or disable feedback for a control
Querying if feedback is supported
For an overview of using tactile feedback in your application, see Tactile feedback implementation example.
The implementation files for the Tactile feedback client API
are touchfeedback.h and touchlogicalfeedback.h.