Go to Post Someday, when I grow up, I want to join the GDC so I can make people go crazy, and then release hints that get people even crazier. - unionylibertad [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2012, 17:23
Redstone's Avatar
Redstone Redstone is offline
Me gusta java
AKA: Ben Beals
FRC #4043 (Nerd Herd)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: McMinnville, Oregon
Posts: 22
Redstone is an unknown quantity at this point
Joystick Buttons

How would i make an if statement to check the status of the buttons on the joystick.

if (joystick button 9 is pressed){
//do something
}

Many Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2012, 17:31
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: Joystick Buttons

The getRawButton method is what you are looking for.
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK

Last edited by connor.worley : 27-01-2012 at 17:31. Reason: casing.
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2012, 17:36
Redstone's Avatar
Redstone Redstone is offline
Me gusta java
AKA: Ben Beals
FRC #4043 (Nerd Herd)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: McMinnville, Oregon
Posts: 22
Redstone is an unknown quantity at this point
Re: Joystick Buttons

Thanks you answered my question. It worked
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:50.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi