Button mapping a Held Down button


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.