Continuously Recording Joystick Movement


Continuously Recording Joystick Movement

Author
Message
echarris128
echarris128
Associate Member
Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)

Group: Forum Members
Posts: 1, Visits: 2
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.

Dave
Dave
Supreme Being
Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)

Group: Administrators
Posts: 9.8K, Visits: 46K
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.

GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search