#ifndef MSP_INPUT_MOUSE_H_
#define MSP_INPUT_MOUSE_H_
+#include <sigc++/trackable.h>
#include <msp/graphics/window.h>
#include "device.h"
Note: Y axis grows upwards.
*/
-class Mouse: public Device
+class Mouse: public Device, public sigc::trackable
{
private:
Graphics::Window &window;
public:
Mouse(Graphics::Window &);
- virtual std::string get_button_name(unsigned) const;
- virtual std::string get_axis_name(unsigned) const;
+
+ std::string get_button_name(unsigned) const override;
+ std::string get_axis_name(unsigned) const override;
private:
void input_event(const Graphics::Window::Event &);
};