{
E_Gesture_Event_Pan *pans = &gesture->gesture_events.pans;
int num_pressed = gesture->gesture_events.num_pressed;
- int i;
Coords start_point = {0, };
if (pans->fingers[num_pressed].client)
_e_gesture_process_pan_down(Ecore_Event_Mouse_Button *ev)
{
E_Gesture_Event_Pan *pans = &gesture->gesture_events.pans;
+ E_Gesture_Conf_Edd *conf = gesture->config->conf;
if (!pans->activation.active)
{
{
pans->state = E_GESTURE_PANPINCH_STATE_READY;
if (pans->start_timer) ecore_timer_del(pans->start_timer);
- pans->start_timer = ecore_timer_add(E_GESTURE_PAN_START_TIME, _e_gesture_timer_pan_start, NULL);
+ pans->start_timer = ecore_timer_add(conf->pan.time_start, _e_gesture_timer_pan_start, NULL);
}
}
_e_gesture_process_pan_move(Ecore_Event_Mouse_Move *ev)
{
E_Gesture_Event_Pan *pans = &gesture->gesture_events.pans;
+ E_Gesture_Conf_Edd *conf = gesture->config->conf;
Coords cur_point = {0,};
int idx, diff_x, diff_y, mode;
diff_x = cur_point.x - pans->center_point.x;
diff_y = cur_point.y - pans->center_point.y;
- if ((ABS(diff_x) > E_GESTURE_PAN_MOVING_RANGE) || (ABS(diff_y) > E_GESTURE_PAN_MOVING_RANGE))
+ if ((ABS(diff_x) > conf->pan.moving_range) || (ABS(diff_y) > conf->pan.moving_range))
{
switch (pans->state)
{
return;
}
- if (ABS(diff_x) > E_GESTURE_PAN_MOVING_RANGE) pans->center_point.x = cur_point.x;
- if (ABS(diff_y) > E_GESTURE_PAN_MOVING_RANGE) pans->center_point.y = cur_point.y;
+ if (ABS(diff_x) > conf->pan.moving_range) pans->center_point.x = cur_point.x;
+ if (ABS(diff_y) > conf->pan.moving_range) pans->center_point.y = cur_point.y;
_e_gesture_pan_send(mode, idx, cur_point.x, cur_point.y, pans->fingers[idx].res, pans->fingers[idx].client);
_e_gesture_process_pinch_down(Ecore_Event_Mouse_Button *ev)
{
E_Gesture_Event_Pinch *pinch = &gesture->gesture_events.pinchs;
+ E_Gesture_Conf_Edd *conf = gesture->config->conf;
if (!pinch->activation.active)
{
{
pinch->state = E_GESTURE_PANPINCH_STATE_READY;
if (pinch->start_timer) ecore_timer_del(pinch->start_timer);
- pinch->start_timer = ecore_timer_add(E_GESTURE_PAN_START_TIME, _e_gesture_timer_pinch_start, NULL);
+ pinch->start_timer = ecore_timer_add(conf->pan.time_start, _e_gesture_timer_pinch_start, NULL);
}
}
_e_gesture_process_pinch_move(Ecore_Event_Mouse_Move *ev)
{
E_Gesture_Event_Pinch *pinch = &gesture->gesture_events.pinchs;
+ E_Gesture_Conf_Edd *conf = gesture->config->conf;
int idx, mode, cx = 0, cy = 0;
double current_distance = 0.0, diff = 0.0, angle = 0.0;
current_distance = _e_gesture_util_distances_get(idx);
diff = current_distance - pinch->distance;
- if (ABS(diff) > E_GESTURE_PINCH_MOVING_DISTANCE_RANGE)
+ if (ABS(diff) > conf->pinch.moving_distance_range)
{
pinch->distance = current_distance;
switch (pinch->state)
static void
_e_gesture_process_palm_cover(int val)
{
- E_Gesture_Event_Palm_Cover *palm_covers = &gesture->gesture_events.palm_covers;
-
if (val == 1)
{
if (gesture->gesture_events.recognized_gesture)