Uhm can't you merge this with the input_event class from input.h? Seems kinda redundant..