0 votes
238 views
by
Hi, I have a trial type in which the participant responds by clicking in one of a set of words displayed on the screen. At the beginning of each trial, I’m setting “Mouse Cursor” to true so that the mouse becomes visible. I’d like also that, at the beginning of each trial, the mouse pointer is automatically sent to the middle of the screen (coordinates (512, 384)). How can I do that?

1 Answer

0 votes
by (8.7k points)
selected by
 
Best answer

Mouse is a device that can provide default positional input to EventIDE. The newest mouse position can read via 'Radar Point' property on any event (given the proxy variable is set to the property). When the mouse is used, the 'Radar Point' property can be also assigned with coordinates, which moves the mouse cursor to desired position. The assignment has to be done in snippets, e.g.:

RadarPoint.X=512; 
RadarPoint.Y=384;

Or, alternatively:

RadarPoint=new clPoint(512,384);

Cursors position can be also set in polar coordinates:

RadarPoint.R=0; 
Radarpoint.Theta=0; // Center of the screen for any screen resolution

 

Welcome to EventIDE Q&A forum where you can ask questions about EventIDE software and receive answers from other members of the community

Categories

FAQ questions

Installation and License


Coding


Eye-tracking


EEG Analysis


Visual Stimuli


Runtime and Data Collection


Hardware

...