discard any pending events in a mouse queue
#include <sys/mouse.h> int mouse_flush( struct _mouse_ctrl *mc );
The mouse_flush() function discards any pending mouse events in the mouse queue associated with mc.
The argument mc is the value returned by a previous mouse_open() call.
See mouse_read().
QNX
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
errno, mouse_close(), mouse_open(), mouse_param(), mouse_read()