Control Surface API  3.1.2
HardwareAction Interface Reference
Inheritance diagram for HardwareAction:

Public Member Functions

void setActionMatcher (HardwareActionMatcher actionMatcher)
 
void setPressureActionMatcher (AbsoluteHardwareValueMatcher actionMatcher)
 
boolean isSupported ()
 
- Public Member Functions inherited from HardwareBindingSource< HardwareActionBinding >
boolean canBindTo (Object target)
 
HardwareBindingType addBinding (HardwareBindable target)
 
void clearBindings ()
 
HardwareBindingType setBinding (HardwareBindable target)
 

Detailed Description

An action that can happen on a hardware control. For example, the user touching it, pressing it, releasing it etc.

Since
API version 10

Definition at line 9 of file HardwareAction.java.

Member Function Documentation

boolean isSupported ( )

Checks if this action is supported (that is, it has a HardwareActionMatcher that can detect it).

void setActionMatcher ( HardwareActionMatcher  actionMatcher)

Sets the HardwareActionMatcher that is used to recognize when this action happens.

void setPressureActionMatcher ( AbsoluteHardwareValueMatcher  actionMatcher)

Sets the AbsoluteHardwareValueMatcher that is used to recognize when this action happens and with what pressure.

This is useful for a button press that is pressure sensitive. The pressure can be obtained by creating a custom action with ControllerHost#createAction(java.util.function.DoubleConsumer, java.util.function.Supplier) and then binding the created action to this HardwareAction.


The documentation for this interface was generated from the following file: