X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Finput%2Fmouse.h;h=c85d8d2b22fb2be4eea1beb0fb9f945d619dbb47;hb=c430f2d7498e9c2daa515ee9aba3a95257e5e999;hp=50681c11954b03b9c0d7b51f751b87f5a29f87cb;hpb=c9626e6953c16efc66575eff80c4c0de2f739041;p=libs%2Fgui.git diff --git a/source/input/mouse.h b/source/input/mouse.h index 50681c1..c85d8d2 100644 --- a/source/input/mouse.h +++ b/source/input/mouse.h @@ -1,8 +1,8 @@ -#ifndef MSP_GBASE_MOUSE_H_ -#define MSP_GBASE_MOUSE_H_ +#ifndef MSP_INPUT_MOUSE_H_ +#define MSP_INPUT_MOUSE_H_ +#include #include "device.h" -#include "../gbase/window.h" namespace Msp { namespace Input { @@ -16,16 +16,14 @@ Note: Y axis grows upwards. 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