Subversion Repositories gelsvn

Rev

Rev 601 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 601 Rev 609
Line 53... Line 53...
53
      return;      
53
      return;      
54
 
54
 
55
	Vec2f w = scalePoint(v); 
55
	Vec2f w = scalePoint(v); 
56
	
56
	
57
	switch (current_action) 
57
	switch (current_action) 
58
	{
58
        {
59
			case ROTATE_ACTION:
59
			case ROTATE_ACTION:
60
	    rotate(w);
60
                rotate(w);
61
	    break;
61
                break;
62
	    
62
                
63
			case PAN_ACTION:
63
			case PAN_ACTION:
64
	    pan(w);
64
                pan(w);
65
	    break;
65
                break;
66
	    
66
                
67
			case ZOOM_ACTION:
67
			case ZOOM_ACTION:
68
	    zoom(w);
68
                zoom(w);
69
	    break;
69
                break;
-
 
70
            case NO_ACTION:
-
 
71
            default:
-
 
72
                break;
70
	}
73
        }
71
	last_pos = w;	
74
	last_pos = w;
72
    }
75
    }
73
    
76
    
74
    // Call this when the user does a mouse down.  
77
    // Call this when the user does a mouse down.  
75
    // Stop the trackball glide, then remember the mouse
78
    // Stop the trackball glide, then remember the mouse
76
    // down point (for a future rotate, pan or zoom).
79
    // down point (for a future rotate, pan or zoom).