View Single Post
  #3   Spotlight this post!  
Unread 14-01-2009, 18:50
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Joystick buttons access

so,
Code:
if (Joystick::GetRawButton(2))//button 2 on the top
//complex code if this is pressed
or
Code:
Joystick stick(1);
if (stick.GetRawButton(2))//button 2 on the top
//complex code if this is pressed
Nothing else?
Reply With Quote