m_mouse_move_handler = ecore_event_handler_add(ECORE_EVENT_MOUSE_MOVE, mouse_move, NULL);
m_mouse_up_handler = ecore_event_handler_add(ECORE_EVENT_MOUSE_BUTTON_UP, mouse_release, NULL);
- //m_xclient_msg_handler = ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE, client_message_cb, NULL);
+ m_xclient_msg_handler = ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE, client_message_cb, NULL);
}
/**
}
}
}
- return TRUE;
+ return ECORE_CALLBACK_PASS_ON;
}
Eina_Bool timer_event(void *data)
context->set_shift_state(state);
if (state != current_state) {
windows->update_window(windows->get_base_window());
- }
- if (context->get_tts_enabled()) {
- if (state == SCL_SHIFT_STATE_ON) {
- utils->play_tts(SCL_SHIFT_STATE_ON_HINT_STRING);
- } else if (state == SCL_SHIFT_STATE_LOCK) {
- utils->play_tts(SCL_SHIFT_STATE_LOCK_HINT_STRING);
- } else {
- utils->play_tts(SCL_SHIFT_STATE_OFF_HINT_STRING);
+ if (context->get_tts_enabled()) {
+ if (state == SCL_SHIFT_STATE_ON) {
+ utils->play_tts(SCL_SHIFT_STATE_ON_HINT_STRING);
+ } else if (state == SCL_SHIFT_STATE_LOCK) {
+ utils->play_tts(SCL_SHIFT_STATE_LOCK_HINT_STRING);
+ } else {
+ utils->play_tts(SCL_SHIFT_STATE_OFF_HINT_STRING);
+ }
}
}
}
r = tts_get_state(tts, ¤t_state);
if (TTS_ERROR_NONE != r) {
- printf("Fail to get state from TTS : ret(%d)\n", r);
+ LOGD("Fail to get state from TTS : ret(%d)\n", r);
}
if (TTS_STATE_PLAYING == current_state) {
r = tts_stop(tts);
if (TTS_ERROR_NONE != r) {
- printf("Fail to stop TTS : ret(%d)\n", r);
+ LOGD("Fail to stop TTS : ret(%d)\n", r);
}
}
r = tts_add_text(tts, str, "en_US", TTS_VOICE_TYPE_FEMALE, TTS_SPEED_NORMAL, &utt_id);
if (TTS_ERROR_NONE == r) {
r = tts_play(tts);
if (TTS_ERROR_NONE != r) {
- printf("Fail to play TTS : ret(%d)\n", r);
+ LOGD("Fail to play TTS : ret(%d)\n", r);
}
+ } else {
+ LOGD("Fail to add text : ret(%d)\n", r);
}
}
LOGD("FEEDBACK INITIALIZATION SUCCESSFUL : %d\n", r);
}
- /*r = tts_create(&tts);
+ r = tts_create(&tts);
if (TTS_ERROR_NONE != r) {
- printf("tts_create FAILED : result(%d)", r);
+ LOGD("tts_create FAILED : result(%d)", r);
} else {
tts_set_mode (tts, TTS_MODE_SCREEN_READER);
}
if (TTS_ERROR_NONE != r) {
- printf("tts_set_mode FAILED : result(%d)", r);
+ LOGD("tts_set_mode FAILED : result(%d)", r);
}
tts_state_e current_state;
}
if (TTS_ERROR_NONE != r) {
LOGD("tts_prepare FAILED : ret(%d)\n", r);
- }*/
+ }
return TRUE;
}
} else {
LOGD("FEEDBACK DEINITIALIZATION SUCCESSFUL : %d\n", r);
}
- /*
+
r = tts_unprepare(tts);
if (TTS_ERROR_NONE != r) {
- printf("tts_unprepare FAILED : result(%d)", r);
+ LOGD("tts_unprepare FAILED : result(%d)", r);
}
r = tts_destroy(tts);
if (TTS_ERROR_NONE != r) {
- printf("tts_destroy FAILED : result(%d)", r);
- }*/
+ LOGD("tts_destroy FAILED : result(%d)", r);
+ }
return TRUE;
}