Robot Core Documentation
Loading...
Searching...
No Matches
edu.wpi.first.wpilibj2.command.button.JoystickButton Class Reference
Inheritance diagram for edu.wpi.first.wpilibj2.command.button.JoystickButton:
edu.wpi.first.wpilibj2.command.button.Trigger

Public Member Functions

 JoystickButton (GenericHID joystick, int buttonNumber)
 
- Public Member Functions inherited from edu.wpi.first.wpilibj2.command.button.Trigger
 Trigger (EventLoop loop, BooleanSupplier condition)
 
 Trigger (BooleanSupplier condition)
 
Trigger onTrue (Command command)
 
Trigger onFalse (Command command)
 
Trigger whileTrue (Command command)
 
Trigger whileFalse (Command command)
 
Trigger toggleOnTrue (Command command)
 
Trigger toggleOnFalse (Command command)
 
Trigger and (BooleanSupplier trigger)
 
Trigger or (BooleanSupplier trigger)
 
Trigger negate ()
 
Trigger debounce (double seconds)
 
Trigger debounce (double seconds, Debouncer.DebounceType type)
 

Detailed Description

A Trigger that gets its state from a GenericHID.

This class is provided by the NewCommands VendorDep

Constructor & Destructor Documentation

◆ JoystickButton()

edu.wpi.first.wpilibj2.command.button.JoystickButton.JoystickButton ( GenericHID joystick,
int buttonNumber )

Creates a joystick button for triggering commands.

Parameters
joystickThe GenericHID object that has the button (e.g. Joystick, KinectStick, etc)
buttonNumberThe button number (see GenericHID#getRawButton(int)

The documentation for this class was generated from the following file: