View Single Post
  #2   Spotlight this post!  
Unread 01-10-2009, 09:47 AM
JDM JDM is offline
programming lead; team executive;..
FRC #2199 (Robo-Lions)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Eldersburg, Maryland
Posts: 34
JDM is on a distinguished road
Re: Programming the joystick trigger...

There's a function of the Joystick class called "GetTrigger".

So, the code that you would want to use would be something like the following, where m_Stick is the name of the Joystick object that you want to check.

Code:
if (m_Stick->GetTrigger()) {
 ...
}
I hope this helps.
Reply With Quote