By echarris128 - 10/21/2014
Hello everyone,
I am new to the forums so I apologize if I do not provide sufficient information up front, and I will provide any additional information that could help address this question if desired.
My challenge: I want to set up a script that continuously (continuous meaning from the beginning of each trial to the end of each trial) records either: (A) joystick pov (indicated in hundredths of a degree clockwise from north away from the user (Inquisit Help)) OR (B) x and y coordinates of the joystick. The joystick that I am using is the Logitech Extreme 3D Pro.
The experimental design is: the screen is split into 4 quadrants, in each trial we want to measure how much (and where) users move the joystick into a quadrant throughout each individual trial.
Any ideas on how to record such movement? Either through manipulation of the joystick.x and joystick.y properties or through the joystick.pov property, but I am struggling to set up the code required to record such output.
Any advice would be very appreciated as I am not the strongest programmer and am new to working with joysticks in Inquisit.
|
By Dave - 10/21/2014
If I'm not misunderstanding your setup, you would essentially have to do something along the lines of the scripts attached to this post:
https://www.millisecond.com/forums/FindPost4421.aspx
(Those deal with mouse coordinates, but the situation with a joystick would be largely analogous.)
https://www.millisecond.com/forums/FindPost13217.aspx may also be of interest -- it illustrates a way to detect if the mouse is in a designated screen area.
Taking a look at the Approach Avoidance Task scripts ( https://www.millisecond.com/download/library/AAT/ ) may also prove useful -- there's plenty of dealing with joystick coordinates in there. Hope this helps.
|
|