Package com.ctre.phoenix
Class ButtonMonitor
java.lang.Object
com.ctre.phoenix.ButtonMonitor
- All Implemented Interfaces:
ILoopable
public class ButtonMonitor extends Object implements ILoopable
Class to handle button events
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ButtonMonitor.IButtonPressEventHandler
Interface for classes that handle button events -
Constructor Summary
Constructors Constructor Description ButtonMonitor(GenericHID controller, int buttonIndex, ButtonMonitor.IButtonPressEventHandler ButtonPressEventHandler)
Constructor for ButtonMonitor -
Method Summary
-
Constructor Details
-
ButtonMonitor
public ButtonMonitor(GenericHID controller, int buttonIndex, ButtonMonitor.IButtonPressEventHandler ButtonPressEventHandler)Constructor for ButtonMonitor- Parameters:
controller
- Controller to monitorbuttonIndex
- Button to monitorButtonPressEventHandler
- Class that will handle buttonPresses
-
-
Method Details