All pastes #2135100 Raw Edit

Unnamed

public text v1 · immutable
#2135100 ·published 2012-04-11 18:53 UTC
rendered paste body
static void
_event_mouse_move(void *data, Evas *e, Evas_Object *obj , void *event_info)
{
    Evas_Event_Mouse_Move *ev = event_info;
    Caroussel_Item *item;
    Evas_Coord w,h;

    if (on_hold)
    {
        double a = acos((ev->cur.output.x - 400 ) / 400.0);
        printf("A : %3.3f X : %d\n",
               a * 360.0 / (2 * M_PI),
               (ev->cur.output.x - 400 ) / 400);
        direction = ev->cur.output.x - ev->prev.output.x;

        _anim(data,  angle_start - a);

    }
}