|
Re: Programming a joystick button...
In your code you should have something like
Joystick *leftstick;
then further down you should have
leftstick = new Joystick(1);
make sure leftstick matches the name of your joystick object.
var = leftstick->GetRawButton(button number);
Thats it
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
|