ffb_set — Set FFB speed and duration
void ffb_set(<FFB_IDENTIFIER>, fix32 speed, uint32 duration);
Set the speed and duration values of the FFB identified by <FFB_IDENTIFIER>.
Once ffb_set() is executed, the force feedback signals from the console will not be transmitted to the connected controllers until ffb_reset() is called. |
ATTENTION: The ffb_set() should NOT be called on every interaction of main . |
FFB_1
, FFB_2
, FFB_3
or FFB_4
. Note: the FFB identifier is passed as direct parameter of the ffb_set()
opcode, therefore stack values can't be used.No value is returned.
main { if(event_active(BUTTON_16)) { ffb_set(FFB_1, 100.0, 500); } }