IO is an event based input manager which permit to select which composents are manged on your system

Dependencies:   C12832 FXOS8700Q LM75B MMA7660

Revision:
3:1ab88130bb9d
Parent:
1:7be9a82f3ab8
--- a/Input.cpp	Tue Feb 23 18:56:50 2016 +0000
+++ b/Input.cpp	Thu Feb 25 14:28:48 2016 +0000
@@ -1,9 +1,13 @@
 #include "IO.hpp"
 
-Input::Input(void) { _ticker.attach(this, &Input::chechAnalog, 0.1); }
+Input::Input(void)
+{
+    _tickerAnalog.attach(this, &Input::checkAnalog, 0.1);
+    _tickerVector.attach(this, &Input::checkVector, 0.3);
+}
 Input::operator    bool(void) { return (!_events.empty()); }
 
-Event   Input::pool(void)
+Event   Input::pull(void)
 {
     Event   event = _events.front();
     
@@ -11,8 +15,12 @@
     return (event);
 }
 
-void    Input::setAnalogSampleSpeed(float time) { _ticker.attach(this, &Input::chechAnalog, time); }
-void    Input::setEnable(void) {}
+void    Input::setAnalogSampleSpeed(float time) { _tickerAnalog.attach(this, &Input::checkAnalog, time); }
+void    Input::setVectorSampleSpeed(float time) { _tickerVector.attach(this, &Input::checkVector, time); }
 
-void    Input::chechAnalog(void) {}
+void    Input::setEnable(void) {}
+void    Input::setPrecision(void) {}
 
+void    Input::checkAnalog(void) {}
+void    Input::checkVector(void) {}
+