-#ifndef MSP_GBASE_MOUSE_H_
-#define MSP_GBASE_MOUSE_H_
+#ifndef MSP_INPUT_MOUSE_H_
+#define MSP_INPUT_MOUSE_H_
+#include <msp/graphics/window.h>
#include "device.h"
-#include "../gbase/window.h"
namespace Msp {
namespace Input {
class Mouse: public Device
{
private:
- Graphics::EventSource &source;
+ Graphics::Window &window;
public:
- Mouse(Graphics::EventSource &);
+ Mouse(Graphics::Window &);
virtual std::string get_button_name(unsigned) const;
virtual std::string get_axis_name(unsigned) const;
private:
- void button_press(int, int, unsigned, unsigned);
- void button_release(int, int, unsigned, unsigned);
- void pointer_motion(int, int);
+ void input_event(const Graphics::Window::Event &);
};
} // namespace Input