lastAction=a;
}
-static int singleclick(ViewInfo* v)
-{
- return(((int)v->mouse.initPos.x == (int)v->mouse.finalPos.x) && ((int)v->mouse.initPos.y == (int)v->mouse.finalPos.y));
-
-}
static void appmouse_down(ViewInfo* v,int x,int y)
{
view->mouse.dragX = 0;
v->mouse.finalPos.x=x;
v->mouse.finalPos.y=y;
to3D(x,y, &v->mouse.GLfinalPos.x,&v->mouse.GLfinalPos.y,&v->mouse.GLfinalPos.z);
- if(singleclick(v))
- {
- if (v->mouse.t==glMouseLeftButton) {
- // no-op
- }
- if (v->mouse.t==glMouseRightButton) {
- // no-op
- }
- }
apply_actions(v,x,y);
view->mouse.dragX = 0;
view->mouse.dragY = 0;