Package com.ctre.phoenix
Class ButtonMonitor
java.lang.Object
com.ctre.phoenix.ButtonMonitor
- All Implemented Interfaces:
ILoopable
Class to handle button events
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface for classes that handle button events -
Constructor Summary
ConstructorDescriptionButtonMonitor
(edu.wpi.first.wpilibj.GenericHID controller, int buttonIndex, ButtonMonitor.IButtonPressEventHandler ButtonPressEventHandler) Constructor for ButtonMonitor -
Method Summary
-
Constructor Details
-
ButtonMonitor
public ButtonMonitor(edu.wpi.first.wpilibj.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
-
process
Call this every loop, it monitors for button presses -
onStart
Do nothing on start -
onLoop
Process every loop -
isDone
-
onStop
Do nothing on stop
-