X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fmouse.h;h=622a783b9960efd31ff201641bd49ae2277eb681;hb=ce170ea187abe2b8017cde611d0e2e86a523ee79;hp=0a0f4fa0f1aa9cf66d566d648405944ef3f1512b;hpb=5add89fdd5e5e542ae0e93de2fe9d9b2532c1e07;p=libs%2Fgui.git diff --git a/source/input/mouse.h b/source/input/mouse.h index 0a0f4fa..622a783 100644 --- a/source/input/mouse.h +++ b/source/input/mouse.h @@ -1,15 +1,9 @@ -/* $Id$ - -This file is part of libmspgbase -Copyright © 2007-2008, 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GBASE_MOUSE_H_ -#define MSP_GBASE_MOUSE_H_ +#ifndef MSP_INPUT_MOUSE_H_ +#define MSP_INPUT_MOUSE_H_ +#include +#include #include "device.h" -#include "../gbase/window.h" namespace Msp { namespace Input { @@ -20,19 +14,17 @@ uniform way. Note: Y axis grows upwards. */ -class Mouse: public Device +class Mouse: public Device, public sigc::trackable { 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