Joystick
 
 
 
PST User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Joystick Expand / Collapse
Author
Message
Posted 1/3/2008 6:59:18 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/3/2008 6:52:17 PM
Posts: 3, Visits: 8
I had my Saitek AV8TR joystick working with EPrime 2.0 Beta.  I have now upgraded to the full EPrime 2.0, but now the same exact joystick is no longer interfacing with EPrime.  When I add the joystick device under the device tab under the Experiment Object Properties Window, no joystick device becomes available on the Duration/Input tab of a Slide object.  Also, when I run the exact EPrime program that worked under the Beta version, I get an error message.  It no longer recognizes the code term "GetCursorPos" in my inLine statement.  Here is the full text from my InLine statement:

Dim ptPress As Point
Joystick.GetCursorPos ptPress.x, ptPress.y

ptPress.x = ptPress.x - 211
ptPress.y = ptPress.y - 119

c.SetAttrib "YPos", ptPress.y
c.SetAttrib "XPos", ptPress.x

My goal is simply to retrieve the Joystick's current position and output that value.  (The values subtracted from ptPress.x and ptPress.y were merely to ensure that the joystick's resting position was outputted as zero.) 

I have also attached the file in case that is helpful

  Post Attachments 
Joystick2.es2 (7 views, 128.97 KB)

Post #1068
Posted 1/4/2008 9:36:31 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Moderators
Last Login: 2/1/2008 8:32:03 AM
Posts: 13, Visits: 28
Greetings,

The problem you are having stems from a recently discovered initialization problem with joysticks under E-Prime 2 (as opposed to E-Prime 2 Professional). This has been solved as of E-Prime 2 build 2.0.1.120 or later. This build should be posted for the public in the very near future.

Please note that using the joystick device(s) as input masks, i.e. adding them to the Duration/Input tab of a Slide object, is an E-Prime 2 Professional exclusive feature.

Thank you for your patience and continued support of E-Prime 2.


-------------------------------------------
Christopher Neff
Software Engineer
Psychology Software Tools, Inc.
Post #1069
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -5:00, Time now is 4:13am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 9 queries. Compression Disabled.