[Previous]
[Contents]
[Next]

mouse_flush()

discard any pending events in a mouse queue

Synopsis:

#include <sys/mouse.h>
int mouse_flush( struct _mouse_ctrl *mc );

Description:

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.

Returns:

0
Success
-1
An error occurred. errno is set to indicate the error.

Errors:

EBUSY
The mouse has already been opened for exclusive access.
EINVAL
The mouse control structure is invalid.

Examples:

See mouse_read().

Classification:

QNX

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

errno, mouse_close(), mouse_open(), mouse_param(), mouse_read()


[Previous]
[Contents]
[Next]