Package ftclib.driverio
Interface FtcGamepad.ButtonEventHandler
- Enclosing class:
- FtcGamepad
public static interface FtcGamepad.ButtonEventHandler
This interface, if provided, will allow this class to do a notification callback when there are button
activities.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buttonEvent
(FtcGamepad.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.
-