]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/mouse.h
Reorganize files to separate gbase and input
[libs/gui.git] / source / input / mouse.h
diff --git a/source/input/mouse.h b/source/input/mouse.h
new file mode 100644 (file)
index 0000000..8d5086f
--- /dev/null
@@ -0,0 +1,35 @@
+/* $Id$
+
+This file is part of libmspgbase
+Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_GBASE_MOUSE_H_
+#define MSP_GBASE_MOUSE_H_
+
+#include "device.h"
+#include "../gbase/window.h"
+
+namespace Msp {
+namespace Input {
+
+class Mouse: public Device
+{
+private:
+       Graphics::Window &window;
+       float axis_scale;
+
+public:
+       Mouse(Graphics::Window &);
+       virtual std::string get_button_name(unsigned) const;
+private:
+       void button_press(int, int, unsigned, unsigned);
+       void button_release(int, int, unsigned, unsigned);
+       void pointer_motion(int, int);
+};
+
+} // namespace Input
+} // namespace Msp
+
+#endif