Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 how do you use JOY STICK on turing???
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
lil_li




PostPosted: Thu May 01, 2003 9:11 pm   Post subject: how do you use JOY STICK on turing???

i need to move a ball using joystick (dont want to use keyboard)

please give me a short example ( and i dont understand the f10 help ) Confused

and why is it keep saying "joystick1 did not declared" when i do
Joystick.GetInfo (joystick1, jx, jy, b1, b2)


PLZ Laughing

THANKYOU Very Happy
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu May 01, 2003 9:20 pm   Post subject: (No subject)

Joystick.GetInfo (joystick1, jx, jy, b1, b2)

joystick1 remains the same. It just tells the program wich joystick you're using Confused can also be joystick2 (I think)...

anyways...

jx is your X position
jy is your Y
b1 and b2 are buttons.

Basically it works very much similar to Mouse.Where(x,y,b). It assigns values to the variables you specify.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Leafs Fan




PostPosted: Mon May 05, 2003 2:17 pm   Post subject: (No subject)

try this site
just scroll down to the Joystick part and there should be some good info for u there...
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: