3 This file is part of libmspgbase
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #include "binarycontrol.h"
9 #include "inputdevice.h"
14 BinaryControl::BinaryControl():
18 BinaryControl::BinaryControl(const ControlSource &s):
23 BinaryControl::BinaryControl(Device &d, ControlSrcType t, unsigned i):
28 void BinaryControl::on_press()
37 void BinaryControl::on_release()
42 signal_release.emit();
46 void BinaryControl::on_motion(float value, float)
48 if(value>src.dev->get_axis_threshold())