Set timestamp for input events
set the time for mouse and touch events. especially for the mouse is important as the timestamp will be used to discriminate between single and double click. previously was always sending the doubleclick event making buttons work only every other time