Joystick movement

ben robinson baltimore.ben at gmail.com
Mon Oct 18 14:19:18 UTC 2010


cool joystick!
when do you want to advance past the slide?  after any joystick movement?
 could you just add a line to "Run" the next object in your procedure once
joystick movement is detected and you've logged things like .RTTime and .RT,
etc.?

ben

On Mon, Oct 18, 2010 at 7:13 AM, Ben <benhisattva at googlemail.com> wrote:

> Hi,
>
> We are trying to record the movement of the joystick without any
> button press. I found a script (see below) on this website, but it
> doesn't work properly. E-Prime does notice that you move the stick as
> the cursor moves with it (even if the stick itself is not part of the
> allowable keys), but it does not go to the next slide if you do not
> press a button and then move the stick. Has anybody an idea, this is
> completely counterintuitive to me..? Perhaps the problem is the
> joystick itself, which is pretty nostalgic:
> http://ecx.images-amazon.com/images/I/51rBHoEr0-L.jpg
> Thanks in advance.
>
> Cheers,
>
> Ben
>
> ---
>
> Dim nInitY As Integer
> Dim nCurrentY As Integer
> Dim nDiff As Integer
> nInitY = Joystick.CursorY
> Do
>   nCurrentY = Joystick.CursorY
>   nDiff = nInitY - nCurrentY
> Loop Until Abs(nDiff) > 50
> Stimulus.RTTime = Clock.Read
> Stimulus.RT = Stimulus.RTTime - Stimulus.OnsetTime
> If nDiff > 0 Then
>   Stimulus.RESP = "Up"
> Else
>   Stimulus.RESP = "Down"
> End If
>
> --
> You received this message because you are subscribed to the Google Groups
> "E-Prime" group.
> To post to this group, send email to e-prime at googlegroups.com.
> To unsubscribe from this group, send email to
> e-prime+unsubscribe at googlegroups.com<e-prime%2Bunsubscribe at googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/e-prime?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20101018/d3e30028/attachment.htm>


More information about the Eprime mailing list