Refactor sendevents.c into setpos(), finger_down(), and finger_up() functions.