Setting mouse position

0 votes
17 views
asked Apr 13, 2016 by Paul
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
answered Apr 13, 2016 by Maria Molodova (8,320 points)
selected Apr 13, 2016 by qandaadmin
 
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

FAQ questions

Installation and License


Coding


Eye-tracking


EEG Analysis


Visual Stimuli


Runtime and Data Collection


Hardware

...