X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fcontrol.h;h=e5679639cf49eabefc9429c1fc83ab32618c60d8;hb=c430f2d7498e9c2daa515ee9aba3a95257e5e999;hp=7d137bbf7342e93d033f6dafab946f1064dc2248;hpb=c9626e6953c16efc66575eff80c4c0de2f739041;p=libs%2Fgui.git diff --git a/source/input/control.h b/source/input/control.h index 7d137bb..e567963 100644 --- a/source/input/control.h +++ b/source/input/control.h @@ -1,5 +1,5 @@ -#ifndef MSP_GBASE_CONTROL_H_ -#define MSP_GBASE_CONTROL_H_ +#ifndef MSP_INPUT_CONTROL_H_ +#define MSP_INPUT_CONTROL_H_ #include #include @@ -55,7 +55,7 @@ protected: Control(const ControlSource &); Control(Device &, ControlSrcType, unsigned); public: - virtual ~Control() { } + virtual ~Control(); void capture(Device &); void cancel_capture(); @@ -63,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();