.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "BUSMOUSE_ADD_BUTTONS" "" "06 October 2005" "" "" .SH NAME busmouse_add_buttons \- notification of a change of button state .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void busmouse_add_buttons (int \fImousedev\fB, int \fIclear\fB, int \fIeor\fB); \fR .SH "ARGUMENTS" .TP \fB\fImousedev\fB\fR mouse number .TP \fB\fIclear\fB\fR mask of buttons to clear .TP \fB\fIeor\fB\fR mask of buttons to change .SH "DESCRIPTION" .PP Updates the button state. The mousedev parameter is the value returned from register_busmouse. The buttons are updated by: new_state = (old_state & ~clear) ^ eor A waiting user thread is woken up.