Setting a bit in the event mask means that the associated event is reported on the mouse FIFO event queue.
At session initialization, the event mask is set to report all events.