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

Dependencies:   C12832 FXOS8700Q LM75B MMA7660

Event.cpp

Committer:
co838_app56
Date:
2016-02-25
Revision:
4:50e2aefe516b
Parent:
3:1ab88130bb9d

File content as of revision 4:50e2aefe516b:

#include "Event.h"

Event::Event(Device dvc, Type tp, int ID, ButtonState val) : device(dvc), type(tp), id(ID), binary(val), analog(0.0f) {}
Event::Event(Device dvc, Type tp, int ID, float val) : device(dvc), type(tp), id(ID), binary(Event::Rise), analog(val) {}
Event::Event(Device dvc, Type tp, int ID, const Vector &val) : device(dvc), type(tp), id(ID), binary(Event::Rise), analog(0.0f), vector(val) {}
Event::Event(const Event &copy) : device(copy.device), type(copy.type), id(copy.id), binary(copy.binary), analog(copy.analog), vector(copy.vector) {}