Files:
This example shows how to use simple haptic effects in an application via the Qt Mobility Feedback API.
It provides an example of how to use the Qt Mobility libraries to:
Compelling applications attempt to immerse the user in the application experience. There are many elements to an immersive experience, including a consistent and beautiful graphical user interface design, unobtrusive yet informative sound design, and intuitive program flow. Another important aspect of immersive applications in tactile feedback and haptic effects.
The Qt Mobility Feedback API allows application developers to include tactile feedback into their application via a simple to use and extensible API. Some common uses for tactile feedback are:
This example application provides some short snippets which illustrate how the first two of those use cases may be fulfilled.
The application is designed to work on desktop and mobile platforms with minimal differences in code between the platforms. The interface consists of four buttons arranged into a square, each of which causes a different tactile effect to be played by the default tactile effect provider plugin on the platform.
The buttons are labeled "Rumble!", "Ocean", "Click" and "Oops!".
The example is not intended to exercise the entire API. Instead, it is a simple example which illustrates some simple uses of the API. Also, the example will not work correctly on platforms which do not have a QFeedbackHapticInterface (haptic effect provider) plugin loaded. On such platforms, clicking the buttons will have no effect.
In particular, the Maemo5 platform currently has no haptic effect provider plugin; it is a work in progress.