Interface HardwareButton
- All Superinterfaces:
HardwareControl,HardwareElement
Represents a physical hardware button on a controller
- Since:
- API version 10
-
Method Summary
Modifier and TypeMethodDescriptionButton stateAction that happens when the user presses the button.Action that happens when the user releases the button.voidSets the optional control that represents the aftertouch value for this button.voidsetRoundedCornerRadius(double radiusInMM) An indication of how rounded the corners of this button should be.Methods inherited from interface com.bitwig.extension.controller.api.HardwareControl
backgroundLight, beginTouchAction, endTouchAction, getName, isBeingTouched, setBackgroundLight, setIndexInGroup, setNameMethods inherited from interface com.bitwig.extension.controller.api.HardwareElement
getHeight, getId, getLabel, getLabelColor, getLabelPosition, getWidth, getX, getY, setBounds, setLabel, setLabelColor, setLabelPosition
-
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
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.
-