summaryrefslogtreecommitdiffstats
path: root/src/controller/callbacks/mouse_motion.c (plain)
blob: 5cdbac71e4a0e2cfd1e0186daab9bb7f8e83a2a1
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.