3 This file is part of libmspgbase
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GBASE_MOUSE_H_
9 #define MSP_GBASE_MOUSE_H_
12 #include "../gbase/window.h"
18 Mouse device. Receives events from a Graphics::Window and presents them in a
21 Note: Y axis grows upwards.
23 class Mouse: public Device
26 Graphics::Window &window;
29 Mouse(Graphics::Window &);
30 virtual std::string get_button_name(unsigned) const;
31 virtual std::string get_axis_name(unsigned) const;
33 void button_press(int, int, unsigned, unsigned);
34 void button_release(int, int, unsigned, unsigned);
35 void pointer_motion(int, int);