|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
||||
|
||||
|
Re: Help with Victor & Shooter
OK, so for simple working code, you'll want something like this in your main loop (having initialized the respective joystick and victors, of course).
lazySusanVictor.set(yourJoystick.getX()); if (yourJoystick.getRawButton(buttonTriggerNumber)) shooterVictor.set(1); else shooterVictor.set(0); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|