Get the mouse events (right and left)

Hello,
I need to get the right and the left clicks of the mouse. The function
WindowButtonDownFcn of Matlab don't work in the same time of the Screen
function of the Psychtoolbox. Does exist a MEX files or other (in the
Psychtoolbox) to get the mouse events (right and left button) ?
Thank you for your help.
Gasp