The maximum number of queue elements returned in cmaxEvents is established during mouse device-driver configuration.