added constructor: FromEvent(unsigned int datatype, unsigned int v)