mouseClick

 elements

A response handler element that records subject response by mouse click. At default waits for one click anywhere on screen, then records response and ends on its own (so you don't need to set property end unless you want it to end earlier). Note mouseClick elements may not work with trackpad taps.

Response values generated are mouse button numbers clicked. You can also use properties to specify areas on screen the subject can click on and record area numbers clicked instead.

For any trial you define in an experiment script, you can make one or more 

mouseClick

 objects using function 

mouseClick

Object and input them to addTrial.

For any trial you define in an experiment script, you can make one or more 

mouseClick

 objects using function 

mouseClick

Object and input them to addTrial.

Input properties

Adjustable properties

You can allow the subject to adjust the following input properties of an object of this type during the experiment using an adjuster element. If you need to make other properties adjustable, you can copy the element type using newPbType and edit it.

position
nn_eyes
rotation
opacity

(None)

(None)

areaPositions
areaSize

Default: click anywhere and response value = mouse button number

If you set these properties, the subject can only click on certain areas on screen and response values are numbers corresponding to areas (1, 2, 3, ...). If you position other elements at these areas and set their sizes correspondingly, you can build the effect of clicking on them.

Set one or more rectangular areas using a 2-column matrix containing centers [x y] (deg) in areaPositions. Row number corresponds to area number. Positions are relative to element position, which you can set in position (default screen center).

Also set areaSize to a number that is side length for square areas, or a vector [width height] for rectangular areas (deg). Or you can use multiple rows (a column vector or matrix) for different sizes for different areas.

OR

areaPositions = <cd>[]<cd> → subject can click anywhere and response values are mouse button numbers clicked.

cursorShape

Default: current shape

A string or number setting mouse cursor shape. This goes to the type input of Psychtoolbox ShowCursor—see there for more information. Standard options are:

<cds>"Arrow"<cds>
<cds>"CrossHair"<cds>
<cds>"Hand"<cds>
<cds>"SandClock"<cds>
<cds>"TextCursor"<cds>

Input properties all visual elements have

position

Input properties all adjuster elements have

adjust

Input properties all objects have

report
info

Record properties

PsychBench uses record properties to record information during experiments. You can't set record properties but you can see them in experiment results using input property report.