|
WPILibC++
2020.3.2
|
Public Member Functions | |
| POVButton (GenericHID &joystick, int angle, int povNumber=0) | |
| Creates a POV button for triggering commands. More... | |
| POVButton (POVButton &&)=default | |
| POVButton & | operator= (POVButton &&)=default |
| bool | Get () override |
Public Member Functions inherited from frc::Button | |
| Button (Button &&)=default | |
| Button & | operator= (Button &&)=default |
| virtual void | WhenPressed (Command *command) |
| Specifies the command to run when a button is first pressed. More... | |
| virtual void | WhileHeld (Command *command) |
| Specifies the command to be scheduled while the button is pressed. More... | |
| virtual void | WhenReleased (Command *command) |
| Specifies the command to run when the button is released. More... | |
| virtual void | CancelWhenPressed (Command *command) |
| Cancels the specificed command when the button is pressed. More... | |
| virtual void | ToggleWhenPressed (Command *command) |
| Toggle the specified command when the button is pressed. More... | |
Public Member Functions inherited from frc::Trigger | |
| Trigger (const Trigger &rhs) | |
| Trigger & | operator= (const Trigger &rhs) |
| Trigger (Trigger &&rhs) | |
| Trigger & | operator= (Trigger &&rhs) |
| bool | Grab () |
| void | WhenActive (Command *command) |
| void | WhileActive (Command *command) |
| void | WhenInactive (Command *command) |
| void | CancelWhenActive (Command *command) |
| void | ToggleWhenActive (Command *command) |
| void | InitSendable (SendableBuilder &builder) override |
| Initializes this Sendable object. More... | |
Public Member Functions inherited from frc::SendableHelper< Trigger > | |
| SendableHelper (const SendableHelper &rhs)=default | |
| SendableHelper (SendableHelper &&rhs) | |
| SendableHelper & | operator= (const SendableHelper &rhs)=default |
| SendableHelper & | operator= (SendableHelper &&rhs) |
| std::string | GetName () const |
| Gets the name of this Sendable object. More... | |
| void | SetName (const wpi::Twine &name) |
| Sets the name of this Sendable object. More... | |
| void | SetName (const wpi::Twine &subsystem, const wpi::Twine &name) |
| Sets both the subsystem name and device name of this Sendable object. More... | |
| std::string | GetSubsystem () const |
| Gets the subsystem name of this Sendable object. More... | |
| void | SetSubsystem (const wpi::Twine &subsystem) |
| Sets the subsystem name of this Sendable object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from frc::SendableHelper< Trigger > | |
| void | SetName (const wpi::Twine &moduleType, int channel) |
| Sets the name of the sensor with a channel number. More... | |
| void | SetName (const wpi::Twine &moduleType, int moduleNumber, int channel) |
| Sets the name of the sensor with a module and channel number. More... | |
| void | AddChild (std::shared_ptr< Sendable > child) |
| Add a child component. More... | |
| void | AddChild (void *child) |
| Add a child component. More... | |
| frc::POVButton::POVButton | ( | GenericHID & | joystick, |
| int | angle, | ||
| int | povNumber = 0 |
||
| ) |
Creates a POV button for triggering commands.
| joystick | The GenericHID object that has the POV |
| angle | The desired angle in degrees (e.g. 90, 270) |
| povNumber | The POV number ( |