void haptic_module_init(void);
void haptic_module_disconnect(void);
-void haptic_vibrate_start(void);
+void haptic_vibrate_start(int duration, int feedback);
void haptic_vibrate_stop(void);
<operation name="http://tizen.org/appcontrol/operation/read_screen"/>
</app-control>
</ui-application>
+ <privileges>
+ <privilege>http://tizen.org/privilege/haptic</privilege>
+ </privileges>
</manifest>
#define TTS_MAX_TEXT_SIZE 2000
#define GESTURE_LIMIT 10
+#define HAPTIC_VIBRATE_DURATION 50
+#define HAPTIC_VIBRATE_INTENSITY 50
+
//Timeout in ms which will be used as interval for handling ongoing
//hoved gesture updates. It is introduced to improve performance.
//Even if user makes many mouse move events within hover gesture
if (context && flat_navi_context_current_get(context) != new_highlighted_obj) {
flat_navi_context_current_set(context, g_object_ref(new_highlighted_obj));
}
+
+ haptic_vibrate_start(HAPTIC_VIBRATE_DURATION, HAPTIC_VIBRATE_INTENSITY);
+
}
void clear(gpointer d)
* @brief Start vibrations
*
*/
-void haptic_vibrate_start(void)
+void haptic_vibrate_start(int duration, int feedback)
{
if (!handle) {
ERROR("Haptic handle lost");
return;
}
- if (!device_haptic_vibrate(handle, 1000, 100, &effect_handle)) {
+ if (!device_haptic_vibrate(handle, duration, feedback, &effect_handle)) {
DEBUG(RED "Vibrations started!" RESET);
} else {
ERROR("Cannot start vibration");
atspi_event_listener_register(listener, "object:scroll-start", NULL);
atspi_event_listener_register(listener, "object:scroll-end", NULL);
+#ifndef SCREEN_READER_TV
haptic_module_init();
+#endif
status = EINA_TRUE;
}
*/
void smart_notification_shutdown(void)
{
+#ifndef SCREEN_READER_TV
+ haptic_module_disconnect();
+#endif
status = EINA_FALSE;
}