# The Mugen Fighters Guild

## Help => M.U.G.E.N Development Help => MUGEN Class => Topic started by: Cybasterd on October 29, 2015, 01:43:39 PM

Title: ForceFeedback (SCTRL)
Post by: Cybasterd on October 29, 2015, 01:43:39 PM
Creates force feedback for supported force feedback devices. This controller is not implemented in MUGEN 1.0.

Parameters to the ForceFeedback controller may not be specified using arithmetic expressions. It is an exception in this regard.

Required parameters:
none

Optional parameters:
waveform = wave_type (string)
Valid waveforms are "sine", "square", "sinesquare", and "off". For the Dual Shock controller, a sine waveform corresponds to the large rumble motor, and a square waveform corresponds to the smaller buzzer motor. sinesquare, of course, corresponds to both motors simultaneously. Use "off" to turn off any force feedback that is currently executing. waveform defaults to sine.

time = duration (integer constant)
Specifies how long the force feedback should last, in ticks. Defaults to 60.

freq = start (integer constant), d1, d2, d3 (float constants)
Force feedback frequency varies between 0 and 255. The formula used to determine force feedback frequency is start + d1 * t + d2 * t ** 2 + d3 * t ** 3 where t represents the number of ticks elapsed since the force feedback was initiated. Defaults to freq = 128,0,0,0. Currently, the frequency parameter is completely ignored.

ampl = start (integer constant), d1, d2, d3 (float constants)
Force feedback amplitude varies between 0 and 255. The formula used to determine force feedback frequency is start + d1 * t + d2 * t ** 2 + d3 * t ** 3 where t represents the number of ticks elapsed since the force feedback was initiated. Defaults to ampl = 128,0,0,0

self = self_flag (boolean constant)
If self_flag is 1, then P1's pad will vibrate. If self is 0, then P2's pad will vibrate. Defaults to 1.

Example:
See common1.cns.

QUESTION: Is this implemented in 1.1b?