1 #ifndef MSP_INPUT_MOUSE_H_
2 #define MSP_INPUT_MOUSE_H_
4 #include <sigc++/trackable.h>
5 #include <msp/graphics/mspgui_api.h>
6 #include <msp/graphics/window.h>
13 Mouse device. Receives events from a Graphics::Window and presents them in a
16 Note: Y axis grows upwards.
18 class MSPGUI_API Mouse: public Device, public sigc::trackable
21 Graphics::Window &window;
24 Mouse(Graphics::Window &);
26 std::string get_button_name(unsigned) const override;
27 std::string get_axis_name(unsigned) const override;
29 void input_event(const Graphics::Window::Event &);