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

Username:   Password: 
 RegisterRegister   
 Joystick pin and character
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Hemin




PostPosted: Sun Jun 15, 2008 3:50 pm   Post subject: Joystick pin and character

Which pin and which character makes the joystick move help?
Sponsor
Sponsor
Sponsor
sponsor
riveryu




PostPosted: Sun Jun 15, 2008 9:05 pm   Post subject: RE:Joystick pin and character

I dont actually know what you are talking about but there is a joystick tutorial in the Tutorial section of this forum I think, maybe that will help?
Insectoid




PostPosted: Mon Jun 16, 2008 7:33 am   Post subject: RE:Joystick pin and character

I believe it is pins 10-13 and 15 for input, though I may be wrong.

riveryu- I think he wants to know which pins in the DB the joystick inputs through. Don't know what he means by 'character' though; is he looking for the binary representation of the pin number?
Hemin




PostPosted: Mon Jun 16, 2008 7:55 am   Post subject: Re: Joystick pin and character

i mean what would be the code for it to go left
Insectoid




PostPosted: Mon Jun 16, 2008 8:01 am   Post subject: RE:Joystick pin and character

you would have to use parallelget and use an if statement.

code:

if joystick pressed left then
    move guy left
end if
Hemin




PostPosted: Mon Jun 16, 2008 8:04 am   Post subject: Re: Joystick pin and character

i need a real code not if joystick is pressed left
Insectoid




PostPosted: Mon Jun 16, 2008 8:12 am   Post subject: RE:Joystick pin and character

Well, perhaps you can ask your teacher? Or read a tutorial? Have you done parallelput yet? F10 it?

you need to play around with it. parallelget from the stick, then put whatever the input is to the screen. It will give you the exact numbers that you need. (I think)
Hemin




PostPosted: Mon Jun 16, 2008 8:09 pm   Post subject: Re: Joystick pin and character

i got it working i had to remove one of the code which was preventing it from going left but thanks for your help
Sponsor
Sponsor
Sponsor
sponsor
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  [ 8 Posts ]
Jump to:   


Style:  
Search: