Exemple #1
0
void handle_singleclick(Network::Client* client, PKTIN_09* msg)
{
  u32 serial = cfBEu32( msg->serial );
  if (client && client->chr)
    singleclick(client, serial);
  // TODO: report if someone tries to use singleclick without a connected char (should have been blocked)
}
Exemple #2
0
static void appmouse_up(ViewInfo* v,int x,int y)
{

    /* int a; */
    v->mouse.down=0;
    v->mouse.finalPos.x=x;
    v->mouse.finalPos.y=y;
    /* a=get_mode(v); */
    to3D(x,y, &v->mouse.GLfinalPos.x,&v->mouse.GLfinalPos.y,&v->mouse.GLfinalPos.z);
    if(singleclick(v))
    {
	if (v->mouse.t==glMouseLeftButton)
	    appmouse_left_click(v,x,y);
	if (v->mouse.t==glMouseRightButton)
	    appmouse_right_click(v,x,y);
    }
    apply_actions(v,x,y);
    view->mouse.dragX = 0;
    view->mouse.dragY = 0;
    view->arcball->isDragging=0;


}