Package frclib.driverio
Interface FrcDualJoystick.ButtonEventHandler
- Enclosing class:
- FrcDualJoystick
public static interface FrcDualJoystick.ButtonEventHandler
This interface, if provided, will allow this class to do a notification callback when there are button
activities.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbuttonEvent(FrcDualJoystick.ButtonType buttonType, boolean pressed) This method is called when button event is detected.
-
Method Details
-
buttonEvent
This method is called when button event is detected.- Parameters:
buttonType- specifies the button type that generates the event.pressed- specifies true if the button is pressed, false otherwise.
-