--- /dev/null
+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2010 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
+#ifndef CAMERACONTROLLER_H_
+#define CAMERACONTROLLER_H_
+
+#include <msp/gbase/window.h>
+#include <msp/gl/camera.h>
+
+class CameraController
+{
+private:
+ Msp::Graphics::Window &window;
+ Msp::GL::Camera &camera;
+ int move_x;
+ int move_y;
+ int zoom;
+ int rotate;
+ int pitch;
+
+public:
+ CameraController(Msp::Graphics::Window &, Msp::GL::Camera &);
+
+ void tick(float);
+private:
+ void key_press(unsigned, unsigned, wchar_t);
+ void key_release(unsigned, unsigned);
+};
+
+#endif