ffb_reset — Reset all FFBs speed and duration
void ffb_reset();
Reset all FFBs speed and duration to the original values and restore the transmission of force feedback signals from the console to the connected controllers.
ATTENTION: The ffb_reset() should NOT be called on every interaction of main . |
No value is returned.
main { if(event_active(BUTTON_16)) { ffb_set(FFB_1, 100.0, 500); } else if(is_release(BUTTON_16)) { uint32 duration; ffb_get(FFB_1, &duration); if(duration == 0) { ffb_reset(); } } }