]> git.tdb.fi Git - libs/gui.git/blob - source/mouse.h
4199f844b29d47c89fd03931c0a2374e75c2a2b3
[libs/gui.git] / source / mouse.h
1 /* $Id$
2
3 This file is part of libmspgbase
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GBASE_MOUSE_H_
9 #define MSP_GBASE_MOUSE_H_
10
11 #include "inputdevice.h"
12 #include "window.h"
13
14 namespace Msp {
15 namespace Input {
16
17 class Mouse: public Device
18 {
19 private:
20         Graphics::Window &window;
21         float axis_scale;
22
23 public:
24         Mouse(Graphics::Window &);
25 private:
26         void button_press(int, int, unsigned, unsigned);
27         void button_release(int, int, unsigned, unsigned);
28         void pointer_motion(int, int);
29 };
30
31 } // namespace Input
32 } // namespace Msp
33
34 #endif