summaryrefslogtreecommitdiffstats
path: root/src/controller/callbacks/mouse_motion.c (plain)
blob: 3279773432e5991b89a106676e620e855e1083dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "mouse_motion.h"
#include "../../view/state0.h"
#include "../actions/pan.h"
#include <GL/glut.h>

#define S state0

void
mouse_motion (int x, int y)
{
  if (S.pan.active)
    {
      pan (S.pan.begin[0], S.pan.begin[1], x, y);
      S.pan.begin[0] = x;
      S.pan.begin[1] = y;
    }

  return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.