MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ForceSetGain

Function ForceSetGain

Descent3/D3ForceFeedback.cpp:329–337  ·  view source on GitHub ↗

------------------------------------------------------------------ ForceSetGain Purpose: Sets the gain of the ForceFeedback system (0 -> 1) ------------------------------------------------------------------

Source from the content-addressed store, hash-verified

327// Sets the gain of the ForceFeedback system (0 -> 1)
328// ------------------------------------------------------------------
329void ForceSetGain(float val) {
330 if (val < 0.0f)
331 val = 0.0f;
332 if (val > 1.0f)
333 val = 1.0f;
334
335 D3Force_gain = val;
336 ddio_ffjoy_SetGain(kJoy1, D3Force_gain);
337}
338
339// ------------------------------------------------------------------
340// ForceGetGain

Callers 3

joystick_settings_dialogFunction · 0.85
ForceInitFunction · 0.85
ForceRestartFunction · 0.85

Calls 1

ddio_ffjoy_SetGainFunction · 0.85

Tested by

no test coverage detected