]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/binarycontrol.cpp
Fix mouse buttons on Windows
[libs/gui.git] / source / input / binarycontrol.cpp
index 371de3c19f1a518afae93e7d329c3968c8c7a175..57c63427839bda9ac6c1d41f5c234e100790d87d 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgbase
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include "binarycontrol.h"
 #include "device.h"
 
@@ -30,14 +23,14 @@ BinaryControl::BinaryControl(Device &d, ControlSrcType t, unsigned i):
 
 void BinaryControl::set_threshold(float t)
 {
-       threshold=t;
+       threshold = t;
 }
 
 void BinaryControl::on_press()
 {
        if(!state)
        {
-               state=true;
+               state = true;
                signal_press.emit();
        }
 }
@@ -46,7 +39,7 @@ void BinaryControl::on_release()
 {
        if(state)
        {
-               state=false;
+               state = false;
                signal_release.emit();
        }
 }