Interface HardwareButton

All Superinterfaces:
HardwareControl, HardwareElement

public interface HardwareButton extends HardwareControl
Represents a physical hardware button on a controller
Since:
API version 10
  • Method Details

    • pressedAction

      HardwareAction pressedAction()
      Action that happens when the user presses the button.
    • releasedAction

      HardwareAction releasedAction()
      Action that happens when the user releases the button.
    • isPressed

      BooleanValue isPressed()
      Button state
    • setAftertouchControl

      void setAftertouchControl(AbsoluteHardwareControl control)
      Sets the optional control that represents the aftertouch value for this button.
    • setRoundedCornerRadius

      void setRoundedCornerRadius(double radiusInMM)
      An indication of how rounded the corners of this button should be.