ffb_get — Get FFB speed and duration
fix32 ffb_get(<FFB_IDENTIFIER>, uint32 *duration);
Retrieve the speed and duration values of the FFB identified by <FFB_IDENTIFIER>.
If the speed and duration were programmatically set by ffb_set() , ffb_get() will return the values programmatically set. |
FFB_1
, FFB_2
, FFB_3
or FFB_4
. Note: the FFB identifier is passed as direct parameter of the ffb_get()
opcode, therefore stack values can't be used.NULL
.The FFB speed in percentage, from 0.00 to 100.00 (%).
main { if(ffb_get(FFB_2, NULL) > 0.0) { set_val(BUTTON_8, 100.0); } }