]> git.tdb.fi Git - libs/gui.git/blob - source/mouse.h
Initial revision
[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
13 namespace Msp {
14
15 class Window;
16
17 namespace Input {
18
19 class Mouse: public Device
20 {
21 private:
22         Window &window;
23         float axis_scale;
24
25 public:
26         Mouse(Window &);
27 private:
28         void button_press(int, int, unsigned, unsigned);
29         void button_release(int, int, unsigned, unsigned);
30         void pointer_motion(int, int);
31 };
32
33 } // namespace Input
34 } // namespace Msp
35
36 #endif