X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fcontrol.h;h=e5679639cf49eabefc9429c1fc83ab32618c60d8;hb=c430f2d7498e9c2daa515ee9aba3a95257e5e999;hp=1d8c50a06bd84040dc17f50c155b1997a733c0c2;hpb=daf317db7a79a4c92880042125814ca942c3a6fa;p=libs%2Fgui.git diff --git a/source/input/control.h b/source/input/control.h index 1d8c50a..e567963 100644 --- a/source/input/control.h +++ b/source/input/control.h @@ -1,12 +1,5 @@ -/* $Id$ - -This file is part of libmspgbase -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GBASE_CONTROL_H_ -#define MSP_GBASE_CONTROL_H_ +#ifndef MSP_INPUT_CONTROL_H_ +#define MSP_INPUT_CONTROL_H_ #include #include @@ -62,7 +55,7 @@ protected: Control(const ControlSource &); Control(Device &, ControlSrcType, unsigned); public: - virtual ~Control() { } + virtual ~Control(); void capture(Device &); void cancel_capture(); @@ -70,9 +63,9 @@ public: void set_source(const ControlSource &); const ControlSource &get_source() const { return src; } protected: - virtual void on_press() =0; - virtual void on_release() =0; - virtual void on_motion(float, float) =0; + virtual void on_press() = 0; + virtual void on_release() = 0; + virtual void on_motion(float, float) = 0; private: void connect_signals();