Mouse Input Device

Description

Interface to the system mouse or other pointing device

Signature

iodevice/mouse_input

Required Parameters

mouse_position_x

Variable in which to store the horizontal position of the pointer (in degrees) on the stimulus display

mouse_position_y

Variable in which to store the vertical position of the pointer (in degrees) on the stimulus display

mouse_down

Variable in which to store the state of the primary mouse button (true if down/clicked, false if up/released)

Optional Parameters

hide_cursor

Default:NO

If YES, hide the cursor inside the stimulus display window

use_mirror_window

Default:NO

If YES, track pointer location on the mirror window instead of the main stimulus display window

alt

Alternative device to use if this one fails to initialize (e.g. because the required hardware is not available). If #allowAltFailover is set to 0 or false, this parameter is ignored.