-/* $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_
Control();
Control(const ControlSource &);
Control(Device &, ControlSrcType, unsigned);
- Control(const Control &);
public:
- Control &operator=(const Control &);
virtual ~Control() { }
void capture(Device &);
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();
void button_press(unsigned);
void button_release(unsigned);
void axis_motion(unsigned, float, float);
+
+ Control(const Control &);
+ Control &operator=(const Control &);
};
} // namespace Input