threshold(0.5)
{ }
+BinaryControl::~BinaryControl()
+{ }
+
void BinaryControl::set_threshold(float t)
{
threshold = t;
BinaryControl();
BinaryControl(const ControlSource &);
BinaryControl(Device &, ControlSrcType, unsigned);
+ virtual ~BinaryControl();
/** Sets the threshold between states for axis sources. No effect on button
sources */
connect_signals();
}
+Control::~Control()
+{ }
+
void Control::capture(Device &d)
{
notify_callbacks();
Control(const ControlSource &);
Control(Device &, ControlSrcType, unsigned);
public:
- virtual ~Control() { }
+ virtual ~Control();
void capture(Device &);
void cancel_capture();
namespace Msp {
namespace Input {
+Device::Device()
+{ }
+
+Device::~Device()
+{ }
+
bool Device::get_button_state(unsigned btn) const
{
if(btn>buttons.size())
std::vector<char> buttons;
std::vector<float> axes;
- Device() { }
+ Device();
public:
- virtual ~Device() { }
+ virtual ~Device();
+
const std::string &get_name() const { return name; }
bool get_button_state(unsigned) const;
float get_axis_value(unsigned) const;
window.signal_input_event.connect(sigc::mem_fun(this, &Keyboard::input_event));
}
+Keyboard::~Keyboard()
+{ }
+
} // namespace Input
} // namespace Msp
public:
Keyboard(Graphics::Window &);
+ virtual ~Keyboard();
virtual std::string get_button_name(unsigned) const;
private: