joystick in e-prime 2.0

Eli Koren ekoren2 at gmail.com
Tue Aug 31 06:14:31 UTC 2010


Hi there!
I want to run joystick script in e-prime2 , i want get response joystick
with button1 or button2.
I have textdisplay1 with 3 second duration.

i wrote this script, it doesnt work!
if i delete  and  ((Clock.Read - TextDisplay1.OnsetTime)<=3000 then it works
but infinite time
i want limit 3 second(3000 msec)
how to change this script, and i want response time script and correct
response.

Thank
Eli Koren



dim t0,t1

Dim ptCursor As Point

Do

Loop Until Joystick.Buttons And (ebJoystickButton1 or ebJoystickButton2 )
and  ((Clock.Read - TextDisplay1.OnsetTime)<=3000)

if Joystick.Buttons then
c.SetAttrib "JoystickRTTime", Clock.Read

c.Setattrib "JoystickRT", Clock.Read - TextDisplay1.OnsetTime

Joystick.GetCursorPos ptCursor.x, ptCursor.y

c.SetAttrib "JoystickX", ptCursor.x

c.SetAttrib "JoystickY", ptCursor.y
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.
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/20100831/0311ef0e/attachment.htm>


More information about the Eprime mailing list