Push a KEY_MOUSE event onto the input queue. The following getmouse() will return the given state data.
curses/ungetmouse
ungetmouse