working code to send events for tilt hor, tilt ver, tap