1 #ifndef MSP_GBASE_MOUSE_H_
2 #define MSP_GBASE_MOUSE_H_
5 #include "../gbase/window.h"
11 Mouse device. Receives events from a Graphics::Window and presents them in a
14 Note: Y axis grows upwards.
16 class Mouse: public Device
19 Graphics::EventSource &source;
22 Mouse(Graphics::EventSource &);
23 virtual std::string get_button_name(unsigned) const;
24 virtual std::string get_axis_name(unsigned) const;
26 void button_press(int, int, unsigned, unsigned);
27 void button_release(int, int, unsigned, unsigned);
28 void pointer_motion(int, int);