Button mapping a Held Down button

Hi,

I’m attempting to create a method that will return true only when a certain button is held down. Is there a way to do this with a wpilib joystick instance?

Thanks for your help!

Most of the Joystick button methods do exactly that, e.g. getTrigger(), getRawButton(), etc, all return true when the button is down and false when the button is up.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.