-/* $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 <string>
#include <sigc++/signal.h>
Control(const ControlSource &);
Control(Device &, ControlSrcType, unsigned);
public:
- virtual ~Control() { }
+ virtual ~Control();
void capture(Device &);
void cancel_capture();
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();