]> git.tdb.fi Git - libs/gui.git/blob - source/mouse.h
Bugfixes
[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         virtual std::string get_button_name(unsigned) const;
26 private:
27         void button_press(int, int, unsigned, unsigned);
28         void button_release(int, int, unsigned, unsigned);
29         void pointer_motion(int, int);
30 };
31
32 } // namespace Input
33 } // namespace Msp
34
35 #endif