Interface FtcMenu.MenuButtons

Enclosing class:
FtcMenu

public static interface FtcMenu.MenuButtons
The user of this class is required to implement the MenuButtons interface. The methods in this interface allows this class to check for button activities the user made without hard coding what particular buttons are associated with up/down/enter/back. So you can associate the activities with gamepad buttons or even other input devices.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method is called by this class to check if the ALT-DOWN button is pressed.
    boolean
    This method is called by this class to check if the ALT-UP button is pressed.
    boolean
    This method is called by this class to check if the BACK button is pressed.
    boolean
    This method is called by this class to check if the DOWN button is pressed.
    boolean
    This method is called by this class to check if the ENTER button is pressed.
    boolean
    This method is called by this class to check if the UP button is pressed.
  • Method Details

    • isMenuUpButton

      boolean isMenuUpButton()
      This method is called by this class to check if the UP button is pressed.
      Returns:
      true if the UP button is pressed, false otherwise.
    • isMenuDownButton

      boolean isMenuDownButton()
      This method is called by this class to check if the DOWN button is pressed.
      Returns:
      true if the DOWN button is pressed, false otherwise.
    • isMenuAltUpButton

      boolean isMenuAltUpButton()
      This method is called by this class to check if the ALT-UP button is pressed.
      Returns:
      true if the ALT-UP button is pressed, false otherwise.
    • isMenuAltDownButton

      boolean isMenuAltDownButton()
      This method is called by this class to check if the ALT-DOWN button is pressed.
      Returns:
      true if the ALT-DOWN button is pressed, false otherwise.
    • isMenuEnterButton

      boolean isMenuEnterButton()
      This method is called by this class to check if the ENTER button is pressed.
      Returns:
      true if the ENTER button is pressed, false otherwise.
    • isMenuBackButton

      boolean isMenuBackButton()
      This method is called by this class to check if the BACK button is pressed.
      Returns:
      true if the BACK button is pressed, false otherwise.